BG_Flood
0.8
Documentation (Work-in-progress)
|
#include "General.h"
#include "Param.h"
#include "Write_txtlog.h"
#include "Util_CPU.h"
#include "Arrays.h"
#include "Mesh.h"
#include "AdaptCriteria.h"
#include "Halo.h"
#include "InitialConditions.h"
#include "Testing.h"
Go to the source code of this file.
Functions | |
template<class T > | |
void | Adaptation (Param &XParam, Forcing< float > XForcing, Model< T > &XModel) |
template<class T > | |
void | InitialAdaptation (Param &XParam, Forcing< float > &XForcing, Model< T > &XModel) |
template<class T > | |
bool | refinesanitycheck (Param XParam, BlockP< T > XBlock, bool *&refine, bool *&coarsen) |
int | checkneighbourrefine (int neighbourib, int levelib, int levelneighbour, bool *&refine, bool *&coarsen) |
template<class T > | |
bool | checkBUQsanity (Param XParam, BlockP< T > XBlock) |
bool | checklevel (int ib, int levelib, int neighbourib, int levelneighbour) |
template<class T > | |
void | Adapt (Param &XParam, Forcing< float > XForcing, Model< T > &XModel) |
template<class T > | |
int | CalcAvailblk (Param &XParam, BlockP< T > XBlock, AdaptP &XAdapt) |
template<class T > | |
int | AddBlocks (int nnewblk, Param &XParam, Model< T > &XModel) |
template<class T > | |
void | coarsen (Param XParam, BlockP< T > &XBlock, AdaptP &XAdapt, EvolvingP< T > XEvo, EvolvingP< T > &XEv) |
template<class T > | |
void | refine (Param XParam, BlockP< T > &XBlock, AdaptP &XAdapt, EvolvingP< T > XEvo, EvolvingP< T > &XEv) |
template<class T > | |
void | Adaptationcleanup (Param &XParam, BlockP< T > &XBlock, AdaptP &XAdapt) |
template<class T > | |
bool | checkneighbourdistance (double dx, int ib, int levelib, T blocko, int neighbourib, int levelneighbour, T neighbourblocko, bool rightortop) |
void Adaptation | ( | Param & | XParam, |
Forcing< float > | XForcing, | ||
Model< T > & | XModel | ||
) |
for (int ibl = 0; ibl < XParam.nblkmem; ibl++) { int ib = XModel.blocks.active[ibl];
if (ib == -1) { XModel.adapt.coarsen[ib] = false; XModel.adapt.refine[ib] = false; }
printf("ibl=%d; availblk[ibl]=%d;\n",ibl, availblk[ibl]);
}
bool checklevel | ( | int | ib, |
int | levelib, | ||
int | neighbourib, | ||
int | levelneighbour | ||
) |
bool checkneighbourdistance | ( | double | dx, |
int | ib, | ||
int | levelib, | ||
T | blocko, | ||
int | neighbourib, | ||
int | levelneighbour, | ||
T | neighbourblocko, | ||
bool | rightortop | ||
) |
int checkneighbourrefine | ( | int | neighbourib, |
int | levelib, | ||
int | levelneighbour, | ||
bool *& | refine, | ||
bool *& | coarsen | ||
) |
void coarsen | ( | Param | XParam, |
BlockP< T > & | XBlock, | ||
AdaptP & | XAdapt, | ||
EvolvingP< T > | XEvo, | ||
EvolvingP< T > & | XEv | ||
) |
void InitialAdaptation | ( | Param & | XParam, |
Forcing< float > & | XForcing, | ||
Model< T > & | XModel | ||
) |
void refine | ( | Param | XParam, |
BlockP< T > & | XBlock, | ||
AdaptP & | XAdapt, | ||
EvolvingP< T > | XEvo, | ||
EvolvingP< T > & | XEv | ||
) |
How did we miss that before