BG_Flood  0.8
Documentation (Work-in-progress)
Adaptation.cu File Reference
#include "Adaptation.h"
Include dependency graph for Adaptation.cu:

Functions

template<class T >
void Adaptation (Param &XParam, Forcing< float > XForcing, Model< T > &XModel)
 
template void Adaptation< float > (Param &XParam, Forcing< float > XForcing, Model< float > &XModel)
 
template void Adaptation< double > (Param &XParam, Forcing< float > XForcing, Model< double > &XModel)
 
template<class T >
void InitialAdaptation (Param &XParam, Forcing< float > &XForcing, Model< T > &XModel)
 
template void InitialAdaptation< float > (Param &XParam, Forcing< float > &XForcing, Model< float > &XModel)
 
template void InitialAdaptation< double > (Param &XParam, Forcing< float > &XForcing, Model< double > &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)
 
template bool checkBUQsanity< float > (Param XParam, BlockP< float > XBlock)
 
template bool checkBUQsanity< double > (Param XParam, BlockP< double > XBlock)
 
bool checklevel (int ib, int levelib, int neighbourib, int levelneighbour)
 
template<class T >
bool checkneighbourdistance (double dx, int ib, int levelib, T blocko, int neighbourib, int levelneighbour, T neighbourblocko, bool rightortop)
 
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 int CalcAvailblk< float > (Param &XParam, BlockP< float > XBlock, AdaptP &XAdapt)
 
template int CalcAvailblk< double > (Param &XParam, BlockP< double > XBlock, AdaptP &XAdapt)
 
template<class T >
int AddBlocks (int nnewblk, Param &XParam, Model< T > &XModel)
 
template int AddBlocks< float > (int nnewblk, Param &XParam, Model< float > &XModel)
 
template int AddBlocks< double > (int nnewblk, Param &XParam, Model< double > &XModel)
 
template<class T >
void coarsen (Param XParam, BlockP< T > &XBlock, AdaptP &XAdapt, EvolvingP< T > XEvo, EvolvingP< T > &XEv)
 
template void coarsen< float > (Param XParam, BlockP< float > &XBlock, AdaptP &XAdapt, EvolvingP< float > XEvo, EvolvingP< float > &XEv)
 
template void coarsen< double > (Param XParam, BlockP< double > &XBlock, AdaptP &XAdapt, EvolvingP< double > XEvo, EvolvingP< double > &XEv)
 
template<class T >
void refine (Param XParam, BlockP< T > &XBlock, AdaptP &XAdapt, EvolvingP< T > XEvo, EvolvingP< T > &XEv)
 
template void refine< float > (Param XParam, BlockP< float > &XBlock, AdaptP &XAdapt, EvolvingP< float > XEvo, EvolvingP< float > &XEv)
 
template void refine< double > (Param XParam, BlockP< double > &XBlock, AdaptP &XAdapt, EvolvingP< double > XEvo, EvolvingP< double > &XEv)
 
template<class T >
void Adaptationcleanup (Param &XParam, BlockP< T > &XBlock, AdaptP &XAdapt)
 
template void Adaptationcleanup< float > (Param &XParam, BlockP< float > &XBlock, AdaptP &XAdapt)
 
template void Adaptationcleanup< double > (Param &XParam, BlockP< double > &XBlock, AdaptP &XAdapt)
 

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 
)

◆ Adaptation< double >()

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

◆ Adaptation< float >()

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

◆ Adaptationcleanup()

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

◆ Adaptationcleanup< double >()

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

◆ Adaptationcleanup< float >()

template void Adaptationcleanup< float > ( Param XParam,
BlockP< float > &  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]);

}

◆ AddBlocks< double >()

template int AddBlocks< double > ( int  nnewblk,
Param XParam,
Model< double > &  XModel 
)

◆ AddBlocks< float >()

template int AddBlocks< float > ( int  nnewblk,
Param XParam,
Model< float > &  XModel 
)

◆ CalcAvailblk()

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

◆ CalcAvailblk< double >()

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

◆ CalcAvailblk< float >()

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

◆ checkBUQsanity()

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

◆ checkBUQsanity< double >()

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

◆ checkBUQsanity< float >()

template bool checkBUQsanity< float > ( Param  XParam,
BlockP< float >  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 
)

◆ coarsen< double >()

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

◆ coarsen< float >()

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

◆ InitialAdaptation()

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

◆ InitialAdaptation< double >()

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

◆ InitialAdaptation< float >()

template void InitialAdaptation< float > ( Param XParam,
Forcing< float > &  XForcing,
Model< float > &  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

◆ refine< double >()

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

◆ refine< float >()

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

◆ refinesanitycheck()

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