BG_Flood  0.8
Documentation (Work-in-progress)
Adaptation.h File Reference
#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"
Include dependency graph for Adaptation.h:
This graph shows which files directly or indirectly include this file:

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)
 

Function Documentation

◆ Adapt()

template<class T >
void Adapt ( Param XParam,
Forcing< float >  XForcing,
Model< T > &  XModel 
)

◆ Adaptation()

template<class T >
void Adaptation ( Param XParam,
Forcing< float >  XForcing,
Model< T > &  XModel 
)

◆ Adaptationcleanup()

template<class T >
void Adaptationcleanup ( Param XParam,
BlockP< T > &  XBlock,
AdaptP XAdapt 
)

◆ AddBlocks()

template<class T >
int AddBlocks ( int  nnewblk,
Param XParam,
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]);

}

◆ CalcAvailblk()

template<class T >
int CalcAvailblk ( Param XParam,
BlockP< T >  XBlock,
AdaptP XAdapt 
)

◆ checkBUQsanity()

template<class T >
bool checkBUQsanity ( Param  XParam,
BlockP< T >  XBlock 
)

◆ checklevel()

bool checklevel ( int  ib,
int  levelib,
int  neighbourib,
int  levelneighbour 
)

◆ checkneighbourdistance()

template<class T >
bool checkneighbourdistance ( double  dx,
int  ib,
int  levelib,
blocko,
int  neighbourib,
int  levelneighbour,
neighbourblocko,
bool  rightortop 
)

◆ checkneighbourrefine()

int checkneighbourrefine ( int  neighbourib,
int  levelib,
int  levelneighbour,
bool *&  refine,
bool *&  coarsen 
)

◆ coarsen()

template<class T >
void coarsen ( Param  XParam,
BlockP< T > &  XBlock,
AdaptP XAdapt,
EvolvingP< T >  XEvo,
EvolvingP< T > &  XEv 
)

◆ InitialAdaptation()

template<class T >
void InitialAdaptation ( Param XParam,
Forcing< float > &  XForcing,
Model< T > &  XModel 
)

◆ refine()

template<class T >
void refine ( Param  XParam,
BlockP< T > &  XBlock,
AdaptP XAdapt,
EvolvingP< T >  XEvo,
EvolvingP< T > &  XEv 
)

How did we miss that before

◆ refinesanitycheck()

template<class T >
bool refinesanitycheck ( Param  XParam,
BlockP< T >  XBlock,
bool *&  refine,
bool *&  coarsen 
)