BG_Flood  0.8
Documentation (Work-in-progress)
Friction.h
Go to the documentation of this file.
1 #ifndef FRICTION_H
2 #define FRICTION_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 bottomfrictionGPU(Param XParam, BlockP<T> XBlock,T dt, T* cf, EvolvingP<T> XEvolv);
11 template <class T> __host__ void bottomfrictionCPU(Param XParam, BlockP<T> XBlock,T dt, T* cf, EvolvingP<T> XEvolv);
12 
13 template <class T> __host__ void XiafrictionCPU(Param XParam, BlockP<T> XBlock, T dt, T* cf, EvolvingP<T> XEvolv, EvolvingP<T> XEvolv_o);
14 template <class T> __global__ void XiafrictionGPU(Param XParam, BlockP<T> XBlock, T dt, T* cf, EvolvingP<T> XEvolv, EvolvingP<T> XEvolv_o);
15 
16 template <class T> __host__ __device__ T smartfriction(T hi,T zo);
17 template <class T> __host__ __device__ T manningfriction(T g, T hi, T n);
18 
19 template <class T> __host__ __device__ bool ThresholdVelocity(T Threshold, T& u, T& v);
20 
21 template <class T> __global__ void TheresholdVelGPU(Param XParam, BlockP<T> XBlock, EvolvingP<T> XEvolv);
22 template <class T> __host__ void TheresholdVelCPU(Param XParam, BlockP<T> XBlock, EvolvingP<T> XEvolv);
23 
24 // End of global definition
25 #endif
__host__ void TheresholdVelCPU(Param XParam, BlockP< T > XBlock, EvolvingP< T > XEvolv)
Function Used to prevent crazy velocity on the CPU.
Definition: Friction.cu:339
__global__ void XiafrictionGPU(Param XParam, BlockP< T > XBlock, T dt, T *cf, EvolvingP< T > XEvolv, EvolvingP< T > XEvolv_o)
Definition: Friction.cu:198
__global__ void bottomfrictionGPU(Param XParam, BlockP< T > XBlock, T dt, T *cf, EvolvingP< T > XEvolv)
Definition: Friction.cu:5
__host__ void XiafrictionCPU(Param XParam, BlockP< T > XBlock, T dt, T *cf, EvolvingP< T > XEvolv, EvolvingP< T > XEvolv_o)
Definition: Friction.cu:134
__host__ __device__ T smartfriction(T hi, T zo)
Definition: Friction.cu:262
__host__ __device__ T manningfriction(T g, T hi, T n)
Definition: Friction.cu:281
__global__ void TheresholdVelGPU(Param XParam, BlockP< T > XBlock, EvolvingP< T > XEvolv)
Function Used to prevent crazy velocity on the GPU.
Definition: Friction.cu:296
__host__ __device__ bool ThresholdVelocity(T Threshold, T &u, T &v)
Function Used to prevent crazy velocity.
Definition: Friction.cu:389
__host__ void bottomfrictionCPU(Param XParam, BlockP< T > XBlock, T dt, T *cf, EvolvingP< T > XEvolv)
Definition: Friction.cu:65
Definition: Param.h:10
Definition: Arrays.h:86
Definition: Arrays.h:29