BG_Flood  0.8
Documentation (Work-in-progress)
Advection.h
Go to the documentation of this file.
1 #ifndef ADVECTION_H
2 #define ADVECTION_H
3 
4 #include "General.h"
5 #include "Param.h"
6 #include "Arrays.h"
7 #include "Forcing.h"
8 #include "MemManagement.h"
9 
10 template <class T> __global__ void updateEVGPU(Param XParam, BlockP<T> XBlock, EvolvingP<T> XEv, FluxP<T> XFlux, AdvanceP<T> XAdv);
11 template <class T> __host__ void updateEVCPU(Param XParam, BlockP<T> XBlock, EvolvingP<T> XEv, FluxP<T> XFlux, AdvanceP<T> XAdv);
12 
13 template <class T> __global__ void AdvkernelGPU(Param XParam, BlockP<T> XBlock, T dt, T* zb, EvolvingP<T> XEv, AdvanceP<T> XAdv, EvolvingP<T> XEv_o);
14 template <class T> __host__ void AdvkernelCPU(Param XParam, BlockP<T> XBlock, T dt, T* zb, EvolvingP<T> XEv, AdvanceP<T> XAdv, EvolvingP<T> XEv_o);
15 
16 template <class T> __global__ void cleanupGPU(Param XParam, BlockP<T> XBlock, EvolvingP<T> XEv, EvolvingP<T> XEv_o);
17 template <class T> __host__ void cleanupCPU(Param XParam, BlockP<T> XBlock, EvolvingP<T> XEv, EvolvingP<T> XEv_o);
18 
19 template <class T> __host__ T CalctimestepCPU(Param XParam, Loop<T> XLoop, BlockP<T> XBlock, TimeP<T> XTime);
20 template <class T> __host__ T CalctimestepGPU(Param XParam, Loop<T> XLoop, BlockP<T> XBlock, TimeP<T> XTime);
21 
22 template <class T> __host__ T timestepreductionCPU(Param XParam, Loop<T> XLoop, BlockP<T> XBlock, TimeP<T> XTime);
23 
24 template <class T> __global__ void reducemin3(T* g_idata, T* g_odata, unsigned int n);
25 
26 template <class T> __global__ void densify(Param XParam, BlockP<T> XBlock, T* g_idata, T* g_odata);
27 
28 // End of global definition
29 #endif
__host__ T timestepreductionCPU(Param XParam, Loop< T > XLoop, BlockP< T > XBlock, TimeP< T > XTime)
Definition: Advection.cu:330
__host__ T CalctimestepCPU(Param XParam, Loop< T > XLoop, BlockP< T > XBlock, TimeP< T > XTime)
Definition: Advection.cu:362
__global__ void reducemin3(T *g_idata, T *g_odata, unsigned int n)
Definition: Advection.cu:469
__global__ void AdvkernelGPU(Param XParam, BlockP< T > XBlock, T dt, T *zb, EvolvingP< T > XEv, AdvanceP< T > XAdv, EvolvingP< T > XEv_o)
Definition: Advection.cu:170
__host__ void AdvkernelCPU(Param XParam, BlockP< T > XBlock, T dt, T *zb, EvolvingP< T > XEv, AdvanceP< T > XAdv, EvolvingP< T > XEv_o)
Definition: Advection.cu:217
__global__ void densify(Param XParam, BlockP< T > XBlock, T *g_idata, T *g_odata)
Definition: Advection.cu:503
__global__ void cleanupGPU(Param XParam, BlockP< T > XBlock, EvolvingP< T > XEv, EvolvingP< T > XEv_o)
Definition: Advection.cu:276
__host__ void cleanupCPU(Param XParam, BlockP< T > XBlock, EvolvingP< T > XEv, EvolvingP< T > XEv_o)
Definition: Advection.cu:300
__global__ void updateEVGPU(Param XParam, BlockP< T > XBlock, EvolvingP< T > XEv, FluxP< T > XFlux, AdvanceP< T > XAdv)
Definition: Advection.cu:38
__host__ T CalctimestepGPU(Param XParam, Loop< T > XLoop, BlockP< T > XBlock, TimeP< T > XTime)
Definition: Advection.cu:391
__host__ void updateEVCPU(Param XParam, BlockP< T > XBlock, EvolvingP< T > XEv, FluxP< T > XFlux, AdvanceP< T > XAdv)
Definition: Advection.cu:100
Definition: Param.h:10
Definition: Arrays.h:55
Definition: Arrays.h:86
Definition: Arrays.h:29
Definition: Arrays.h:46
Definition: Arrays.h:203
Definition: Arrays.h:142