#include <FourthOrderPatchInterp.H>
Public Member Functions | |
FourthOrderPatchInterp () | |
Default constructor. | |
virtual | ~FourthOrderPatchInterp () |
Destructor. | |
virtual void | define (const ProblemDomain &a_domain, const int &a_refineCoarse, const int &a_maxStencilDist, Interval a_fixedDims=Interval()) |
Actual constructor. | |
virtual void | setCoarseBox (const Box &a_coarseBox) |
Set the coarse box before calling setStencil or interpToFine. | |
virtual void | setStencil (BaseFab< IntVect > &a_stencil) |
Set stencil for current coarse box and domain. | |
virtual void | interpToFine (FArrayBox &a_fine, const FArrayBox &a_coarse, const BaseFab< IntVect > &a_stencils) |
Interpolate in space. | |
virtual void | interpToFine (FArrayBox &a_fine, const FArrayBox &a_coarse, const BaseFab< IntVect > &a_stencils, const IntVectSet &a_ivs) |
Interpolate in space. | |
Protected Attributes | |
BaseFab < FourthOrderInterpStencil * > | m_stencils |
all possible stencils, on (-m_maxStencilDist:+m_maxStencilDist)^SpaceDim | |
ProblemDomain | m_domain |
Problem domain - index space for this level. | |
ProblemDomain | m_coarseDomain |
int | m_refineCoarse |
Refinement ratio between this level and the next coarser. | |
int | m_maxStencilDist |
maximum distance of stencil from domain boundary | |
int | m_degree |
max degree of approximations | |
Interval | m_fixedDims |
dimensions that are fixed, not interpolated | |
IntVect | m_refineVect |
1 in m_fixedDims, m_refineCoarse in other dimensions | |
bool | m_defined |
define() has been called | |
Box | m_coarseBox |
current coarse box | |
bool | m_isCoarseBoxSet |
m_coarseBox is set | |
Private Member Functions | |
void | operator= (const FourthOrderPatchInterp &a_input) |
FourthOrderPatchInterp (const FourthOrderPatchInterp &a_input) |
FourthOrderPatchInterp::FourthOrderPatchInterp | ( | ) |
Default constructor.
Object requires define() to be called before all other functions.
virtual FourthOrderPatchInterp::~FourthOrderPatchInterp | ( | ) | [virtual] |
FourthOrderPatchInterp::FourthOrderPatchInterp | ( | const FourthOrderPatchInterp & | a_input | ) | [inline, private] |
References MayDay::Error().
virtual void FourthOrderPatchInterp::define | ( | const ProblemDomain & | a_domain, | |
const int & | a_refineCoarse, | |||
const int & | a_maxStencilDist, | |||
Interval | a_fixedDims = Interval() | |||
) | [virtual] |
Actual constructor.
Set up object.
a_domain | problem domain on this level |
a_refineCoarse | refinement ratio between this level and next coarser level |
a_maxStencilDist | maximum distance of stencil from domain boundary |
a_fixedDims | dimensions that are fixed, not interpolated |
virtual void FourthOrderPatchInterp::setCoarseBox | ( | const Box & | a_coarseBox | ) | [virtual] |
Set the coarse box before calling setStencil or interpToFine.
Set stencil for current coarse box and domain.
Set a_stencil for m_coarseBox.
virtual void FourthOrderPatchInterp::interpToFine | ( | FArrayBox & | a_fine, | |
const FArrayBox & | a_coarse, | |||
const BaseFab< IntVect > & | a_stencils | |||
) | [virtual] |
Interpolate in space.
Interpolate in space to a_fine from a_coarse.
a_fine | interpolated solution on this level |
a_coarse | coarse solution |
a_stencils | stencils |
virtual void FourthOrderPatchInterp::interpToFine | ( | FArrayBox & | a_fine, | |
const FArrayBox & | a_coarse, | |||
const BaseFab< IntVect > & | a_stencils, | |||
const IntVectSet & | a_ivs | |||
) | [virtual] |
Interpolate in space.
Interpolate in space to a_fine from a_coarse at fine cells within the coarse cells listed in a_ivs.
a_fine | interpolated solution on this level |
a_coarse | coarse solution |
a_stencils | stencils |
a_ivs | we fill in fine cells within these coarse cells |
void FourthOrderPatchInterp::operator= | ( | const FourthOrderPatchInterp & | a_input | ) | [inline, private] |
References MayDay::Error().
all possible stencils, on (-m_maxStencilDist:+m_maxStencilDist)^SpaceDim
ProblemDomain FourthOrderPatchInterp::m_domain [protected] |
Problem domain - index space for this level.
ProblemDomain FourthOrderPatchInterp::m_coarseDomain [protected] |
int FourthOrderPatchInterp::m_refineCoarse [protected] |
Refinement ratio between this level and the next coarser.
int FourthOrderPatchInterp::m_maxStencilDist [protected] |
maximum distance of stencil from domain boundary
int FourthOrderPatchInterp::m_degree [protected] |
max degree of approximations
Interval FourthOrderPatchInterp::m_fixedDims [protected] |
dimensions that are fixed, not interpolated
IntVect FourthOrderPatchInterp::m_refineVect [protected] |
1 in m_fixedDims, m_refineCoarse in other dimensions
bool FourthOrderPatchInterp::m_defined [protected] |
define() has been called
Box FourthOrderPatchInterp::m_coarseBox [protected] |
current coarse box
bool FourthOrderPatchInterp::m_isCoarseBoxSet [protected] |
m_coarseBox is set