BG_Flood  0.8
Documentation (Work-in-progress)
Boundary.h
Go to the documentation of this file.
1 
2 #ifndef BOUNDARY_H
3 #define BOUNDARY_H
4 // includes, system
5 
6 #include "General.h"
7 #include "MemManagement.h"
8 #include "Util_CPU.h"
9 
10 
11 
12 template <class T> void Flowbnd(Param XParam, Loop<T>& XLoop, BlockP<T> XBlock, bndparam side, EvolvingP<T> XEv);
13 __host__ __device__ int Inside(int halowidth, int blkmemwidth, int isright, int istop, int ix, int iy, int ib);
14 __host__ __device__ bool isbnd(int isright, int istop, int blkwidth, int ix, int iy);
15 
16 template <class T> __host__ void maskbnd(Param XParam, BlockP<T> XBlock, EvolvingP<T> Xev, T* zb);
17 template <class T> __global__ void maskbndGPUleft(Param XParam, BlockP<T> XBlock, EvolvingP<T> Xev, T* zb);
18 template <class T> __global__ void maskbndGPUtop(Param XParam, BlockP<T> XBlock, EvolvingP<T> Xev, T* zb);
19 template <class T> __global__ void maskbndGPUright(Param XParam, BlockP<T> XBlock, EvolvingP<T> Xev, T* zb);
20 template <class T> __global__ void maskbndGPUbot(Param XParam, BlockP<T> XBlock, EvolvingP<T> Xev, T* zb);
21 
22 template <class T> __global__ void bndGPU(Param XParam, bndparam side, BlockP<T> XBlock, float itime, T* zs, T* h, T* un, T* ut);
23 
24 
25 __device__ __host__ void findmaskside(int side, bool &isleftbot, bool& islefttop, bool& istopleft, bool& istopright, bool& isrighttop, bool& isrightbot, bool& isbotright, bool& isbotleft);
26 template <class T> __device__ __host__ void halowall(T zsinside, T& un, T& ut, T& zs, T& h,T&zb);
27 template <class T> __device__ __host__ void noslipbnd(T zsinside,T hinside,T &un, T &ut,T &zs, T &h);
28 template <class T> __device__ __host__ void ABS1D(T g, T sign, T zsbnd, T zsinside, T hinside, T utbnd,T unbnd, T& un, T& ut, T& zs, T& h);
29 template <class T> __device__ __host__ void Dirichlet1D(T g, T sign, T zsbnd, T zsinside, T hinside, T uninside, T& un, T& ut, T& zs, T& h);
30 
31 // End of global definition
32 #endif
__host__ __device__ bool isbnd(int isright, int istop, int blkwidth, int ix, int iy)
Definition: Boundary.cu:1000
__device__ __host__ void ABS1D(T g, T sign, T zsbnd, T zsinside, T hinside, T utbnd, T unbnd, T &un, T &ut, T &zs, T &h)
Definition: Boundary.cu:802
__host__ __device__ int Inside(int halowidth, int blkmemwidth, int isright, int istop, int ix, int iy, int ib)
Definition: Boundary.cu:963
__global__ void bndGPU(Param XParam, bndparam side, BlockP< T > XBlock, float itime, T *zs, T *h, T *un, T *ut)
Definition: Boundary.cu:81
__device__ __host__ void Dirichlet1D(T g, T sign, T zsbnd, T zsinside, T hinside, T uninside, T &un, T &ut, T &zs, T &h)
Definition: Boundary.cu:813
__global__ void maskbndGPUbot(Param XParam, BlockP< T > XBlock, EvolvingP< T > Xev, T *zb)
Definition: Boundary.cu:691
__host__ void maskbnd(Param XParam, BlockP< T > XBlock, EvolvingP< T > Xev, T *zb)
Definition: Boundary.cu:335
__device__ __host__ void noslipbnd(T zsinside, T hinside, T &un, T &ut, T &zs, T &h)
Definition: Boundary.cu:790
void Flowbnd(Param XParam, Loop< T > &XLoop, BlockP< T > XBlock, bndparam side, EvolvingP< T > XEv)
Definition: Boundary.cu:4
__global__ void maskbndGPUright(Param XParam, BlockP< T > XBlock, EvolvingP< T > Xev, T *zb)
Definition: Boundary.cu:629
__device__ __host__ void halowall(T zsinside, T &un, T &ut, T &zs, T &h, T &zb)
Definition: Boundary.cu:777
__global__ void maskbndGPUleft(Param XParam, BlockP< T > XBlock, EvolvingP< T > Xev, T *zb)
Definition: Boundary.cu:504
__device__ __host__ void findmaskside(int side, bool &isleftbot, bool &islefttop, bool &istopleft, bool &istopright, bool &isrighttop, bool &isrightbot, bool &isbotright, bool &isbotleft)
Definition: Boundary.cu:752
__global__ void maskbndGPUtop(Param XParam, BlockP< T > XBlock, EvolvingP< T > Xev, T *zb)
Definition: Boundary.cu:568
Definition: Param.h:10
Definition: Forcing.h:88
Definition: Arrays.h:86
Definition: Arrays.h:29
Definition: Arrays.h:203