BG_Flood  0.8
Documentation (Work-in-progress)
GridManip.h
Go to the documentation of this file.
1 
2 #ifndef GRIDMANIP_H
3 #define GRIDMANIP_H
4 
5 #include "General.h"
6 #include "Param.h"
7 #include "Util_CPU.h"
8 #include "Forcing.h"
9 #include "Arrays.h"
10 #include "MemManagement.h"
11 
12 template <class T, class F> void CopyArrayBUQ(Param XParam, BlockP<F> XBlock, T* source, T*& dest);
13 template <class T> void CopyArrayBUQ(Param XParam, BlockP<T> XBlock, EvolvingP<T> source, EvolvingP<T>& dest);
14 template <class T> void CopyArrayBUQ(Param XParam, BlockP<T> XBlock, EvolvingP<T> source, EvolvingP_M<T>& dest);
15 template <class T, class F> void InitArrayBUQ(Param XParam, BlockP<F> XBlock, T initval, T*& Arr);
16 template <class T, class F> void InitBlkBUQ(Param XParam, BlockP<F> XBlock, T initval, T*& Arr);
17 template <class T> void setedges(Param XParam, BlockP<T> XBlock, T*& zb);
18 
19 
20 template <class T> void interp2BUQ(Param XParam, BlockP<T> XBlock, std::vector<StaticForcingP<float>> forcing, T* z);
21 template <class T, class F> void interp2BUQ(Param XParam, BlockP<T> XBlock, F forcing, T*& z);
22 template <class T, class F> T interp2BUQ(T x, T y, F forcing);
23 template <class T, class F> T interp2BUQ(T x, T y, T dx, F forcing);
24 
25 template <class T, class F> void InterpstepCPU(int nx, int ny, int hdstep, F totaltime, F hddt, T*& Ux, T* Uo, T* Un);
26 template <class T> __global__ void InterpstepGPU(int nx, int ny, int hdstp, T totaltime, T hddt, T* Ux, T* Uo, T* Un);
27 
28 template <class T> void Copy2CartCPU(int nx, int ny, T* dest, T* src);
29 
30 // End of global definition
31 #endif
__global__ void InterpstepGPU(int nx, int ny, int hdstp, T totaltime, T hddt, T *Ux, T *Uo, T *Un)
Definition: GridManip.cu:438
void Copy2CartCPU(int nx, int ny, T *dest, T *src)
Definition: GridManip.cu:463
void InterpstepCPU(int nx, int ny, int hdstep, F totaltime, F hddt, T *&Ux, T *Uo, T *Un)
Definition: GridManip.cu:409
void setedges(Param XParam, BlockP< T > XBlock, T *&zb)
Definition: GridManip.cu:152
void CopyArrayBUQ(Param XParam, BlockP< F > XBlock, T *source, T *&dest)
Definition: GridManip.cu:84
void InitArrayBUQ(Param XParam, BlockP< F > XBlock, T initval, T *&Arr)
Definition: GridManip.cu:29
void InitBlkBUQ(Param XParam, BlockP< F > XBlock, T initval, T *&Arr)
Definition: GridManip.cu:60
void interp2BUQ(Param XParam, BlockP< T > XBlock, std::vector< StaticForcingP< float >> forcing, T *z)
Definition: GridManip.cu:259
Definition: Param.h:10
Definition: Arrays.h:86
Definition: Arrays.h:39
Definition: Arrays.h:29
Definition: Forcing.h:81