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

Functions

bool isPow2 (int x)
 
template<class T >
__host__ __device__ double calcres (T dx, int level)
 
int wetdrycriteria (Param XParam, bool *&refine, bool *&coarsen)
 
template<class T >
int inrangecriteria (Param XParam, T zmin, T zmax, bool *&refine, bool *&coarsen, T *z)
 
bool refinesanitycheck (Param XParam, bool *&refine, bool *&coarsen)
 
Param adapt (Param XParam)
 
bool checkBUQsanity (Param XParam)
 

Function Documentation

◆ adapt()

Param adapt ( Param  XParam)

perform refining/corasening

◆ calcres()

template<class T >
template< class T >< strong > host</strong >< strong > device</strong > double calcres ( dx,
int  level 
)

Template function to calculate the grid cell size based on level and initial/seed dx

◆ checkBUQsanity()

bool checkBUQsanity ( Param  XParam)

Check the sanity of the BUQ mesh This function mostly checks the level of neighbouring blocks

Needs improvements

◆ inrangecriteria()

template<class T >
int inrangecriteria ( Param  XParam,
zmin,
zmax,
bool *&  refine,
bool *&  coarsen,
T *  z 
)

Simple in-range refining criteria. if any value of z (could be any variable) is zmin <= z <= zmax the block will try to refine otherwise, the block will try to coarsen beware the refinement sanity check is meant to be done after running this function

◆ isPow2()

bool isPow2 ( int  x)

◆ refinesanitycheck()

bool refinesanitycheck ( Param  XParam,
bool *&  refine,
bool *&  coarsen 
)

check and correct the sanity of first order refining/corasening criteria.

◆ wetdrycriteria()

int wetdrycriteria ( Param  XParam,
bool *&  refine,
bool *&  coarsen 
)

Simple wet/.dry refining criteria. if the block is wet -> refine is true if the block is dry -> coarsen is true beware the refinement sanity check is meant to be done after running this function