BG_Flood  0.1
Documentation (Work-in-progress)
Init_gpu.cu File Reference
This graph shows which files directly or indirectly include this file:

Functions

void CUDA_CHECK (cudaError CUDerr)
 
template<class T >
void Allocate1GPU (int nx, int ny, T *&zb_g)
 
template<class T >
void Allocate4GPU (int nx, int ny, T *&zs_g, T *&hh_g, T *&uu_g, T *&vv_g)
 
void checkGradGPU (Param XParam)
 
int AllocMemGPU (Param XParam)
 
int allocTexMem (bndparam bnd, cudaArray *&WLS, cudaArray *&Uvel, cudaArray *&Vvel, cudaChannelFormatDesc &CFDbndzs, cudaChannelFormatDesc &CFDbnduu, cudaChannelFormatDesc &CFDbndvv, texture< float, 2, cudaReadModeElementType > &TexZs, texture< float, 2, cudaReadModeElementType > &TexU, texture< float, 2, cudaReadModeElementType > &TexV)
 
int AllocMemGPUBND (Param XParam)
 
void LeftFlowBnd (Param XParam)
 
void RightFlowBnd (Param XParam)
 
void TopFlowBnd (Param XParam)
 
void BotFlowBnd (Param XParam)
 
double FlowGPU (Param XParam, double nextoutputtime)
 
double FlowGPUATM (Param XParam, double nextoutputtime)
 
double FlowGPUSpherical (Param XParam, double nextoutputtime)
 
double FlowGPUDouble (Param XParam, double nextoutputtime)
 
void meanmaxvarGPU (Param XParam)
 
void meanmaxvarGPUD (Param XParam)
 
void DivmeanvarGPU (Param XParam, float nstep)
 
void DivmeanvarGPUD (Param XParam, double nstep)
 
void ResetmeanvarGPU (Param XParam)
 
void ResetmeanvarGPUD (Param XParam)
 
void ResetmaxvarGPU (Param XParam)
 
void ResetmaxvarGPUD (Param XParam)
 
void RiverSource (Param XParam)
 
void RiverSourceD (Param XParam)
 
double Rainthisstep (Param XParam, dim3 gridDimRain, dim3 blockDimRain, int &rainstep)
 
template<class T >
void Windthisstep (Param XParam, dim3 gridDimWND, dim3 blockDimWND, cudaStream_t stream, int &windstep, T &uwinduni, T &vwinduni)
 
void AtmPthisstep (Param XParam, dim3 gridDimATM, dim3 blockDimATM, int &atmpstep)
 
void pointoutputstep (Param XParam, dim3 gridDim, dim3 blockDim, int &nTSsteps, std::vector< std::vector< Pointout > > &zsAllout)
 
template<class T >
double Calcmaxdt (Param XParam, T *dtmax, T *arrmax)
 
template<class T >
void ApplyDeform (Param XParam, dim3 blockDim, dim3 gridDim, T *&dummy, T *&dh, T *&hh, T *&zs, T *&zb)
 

Function Documentation

◆ Allocate1GPU()

template<class T >
void Allocate1GPU ( int  nx,
int  ny,
T *&  zb_g 
)

◆ Allocate4GPU()

template<class T >
void Allocate4GPU ( int  nx,
int  ny,
T *&  zs_g,
T *&  hh_g,
T *&  uu_g,
T *&  vv_g 
)

◆ AllocMemGPU()

int AllocMemGPU ( Param  XParam)

◆ AllocMemGPUBND()

int AllocMemGPUBND ( Param  XParam)

◆ allocTexMem()

int allocTexMem ( bndparam  bnd,
cudaArray *&  WLS,
cudaArray *&  Uvel,
cudaArray *&  Vvel,
cudaChannelFormatDesc &  CFDbndzs,
cudaChannelFormatDesc &  CFDbnduu,
cudaChannelFormatDesc &  CFDbndvv,
texture< float, 2, cudaReadModeElementType > &  TexZs,
texture< float, 2, cudaReadModeElementType > &  TexU,
texture< float, 2, cudaReadModeElementType > &  TexV 
)

BEWARE The cases above is not dealing with weird situation where nbndvecvv != nbndvec != nbndvecuu

◆ ApplyDeform()

template<class T >
void ApplyDeform ( Param  XParam,
dim3  blockDim,
dim3  gridDim,
T *&  dummy,
T *&  dh,
T *&  hh,
T *&  zs,
T *&  zb 
)

◆ AtmPthisstep()

void AtmPthisstep ( Param  XParam,
dim3  gridDimATM,
dim3  blockDimATM,
int &  atmpstep 
)

◆ BotFlowBnd()

void BotFlowBnd ( Param  XParam)

◆ Calcmaxdt()

template<class T >
double Calcmaxdt ( Param  XParam,
T *  dtmax,
T *  arrmax 
)

◆ checkGradGPU()

void checkGradGPU ( Param  XParam)

◆ CUDA_CHECK()

void CUDA_CHECK ( cudaError  CUDerr)

◆ DivmeanvarGPU()

void DivmeanvarGPU ( Param  XParam,
float  nstep 
)

◆ DivmeanvarGPUD()

void DivmeanvarGPUD ( Param  XParam,
double  nstep 
)

◆ FlowGPU()

double FlowGPU ( Param  XParam,
double  nextoutputtime 
)

◆ FlowGPUATM()

double FlowGPUATM ( Param  XParam,
double  nextoutputtime 
)

◆ FlowGPUDouble()

double FlowGPUDouble ( Param  XParam,
double  nextoutputtime 
)

◆ FlowGPUSpherical()

double FlowGPUSpherical ( Param  XParam,
double  nextoutputtime 
)

◆ LeftFlowBnd()

void LeftFlowBnd ( Param  XParam)

◆ meanmaxvarGPU()

void meanmaxvarGPU ( Param  XParam)

◆ meanmaxvarGPUD()

void meanmaxvarGPUD ( Param  XParam)

◆ pointoutputstep()

void pointoutputstep ( Param  XParam,
dim3  gridDim,
dim3  blockDim,
int &  nTSsteps,
std::vector< std::vector< Pointout > > &  zsAllout 
)

◆ Rainthisstep()

double Rainthisstep ( Param  XParam,
dim3  gridDimRain,
dim3  blockDimRain,
int &  rainstep 
)

◆ ResetmaxvarGPU()

void ResetmaxvarGPU ( Param  XParam)

◆ ResetmaxvarGPUD()

void ResetmaxvarGPUD ( Param  XParam)

◆ ResetmeanvarGPU()

void ResetmeanvarGPU ( Param  XParam)

◆ ResetmeanvarGPUD()

void ResetmeanvarGPUD ( Param  XParam)

◆ RightFlowBnd()

void RightFlowBnd ( Param  XParam)

◆ RiverSource()

void RiverSource ( Param  XParam)

◆ RiverSourceD()

void RiverSourceD ( Param  XParam)

◆ TopFlowBnd()

void TopFlowBnd ( Param  XParam)

◆ Windthisstep()

template<class T >
void Windthisstep ( Param  XParam,
dim3  gridDimWND,
dim3  blockDimWND,
cudaStream_t  stream,
int &  windstep,
T &  uwinduni,
T &  vwinduni 
)