BG_Flood
0.1
Documentation (Work-in-progress)
|
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) |
template< class T >< strong > host</strong >< strong > device</strong > double calcres | ( | T | dx, |
int | level | ||
) |
Template function to calculate the grid cell size based on level and initial/seed dx
bool checkBUQsanity | ( | Param | XParam | ) |
Check the sanity of the BUQ mesh This function mostly checks the level of neighbouring blocks
Needs improvements
int inrangecriteria | ( | Param | XParam, |
T | zmin, | ||
T | 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
bool isPow2 | ( | int | x | ) |
bool refinesanitycheck | ( | Param | XParam, |
bool *& | refine, | ||
bool *& | coarsen | ||
) |
check and correct the sanity of first order refining/corasening criteria.
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