11 #ifndef _FOURTHORDERINTERPSTENCIL_H_ 12 #define _FOURTHORDERINTERPSTENCIL_H_ 36 const int& a_refineCoarse,
38 const int& a_degree = 3)
40 define(a_bdryOffset, a_refineCoarse, a_degree);
57 const int& a_refineCoarse,
59 const int& a_degree = 3);
76 const IntVect& a_coarseDataCell,
~FourthOrderInterpStencil()
Destructor.
Vector< int > m_coarseBaseIndices
length m_stencilSize*SpaceDim, lists indices of coarse cell corresponding to each component of m_coar...
Definition: FourthOrderInterpStencil.H:98
Box m_baseFineBox
0:(m_refineCoarse-1) in every dimension
Definition: FourthOrderInterpStencil.H:92
void fillFine(FArrayBox &a_fineFab, const FArrayBox &a_coarseFab, const IntVect &a_coarseDataCell, const IntVect &a_coarseToFineOffset=IntVect::Zero) const
Interpolate to all the fine cells within one coarse cell.
int m_degree
max degree of polynomials
Definition: FourthOrderInterpStencil.H:86
void operator=(const FourthOrderInterpStencil &a_input)
Definition: FourthOrderInterpStencil.H:109
void define(const IntVect &a_bdryOffset, const int &a_refineCoarse, const int &a_degree=3)
Actual constructor.
FourthOrderInterpStencil(const FourthOrderInterpStencil &a_input)
Definition: FourthOrderInterpStencil.H:115
Time interpolator class using 4th-order Runge-Kutta.
Definition: FourthOrderInterpStencil.H:23
int m_refineCoarse
refinement ratio
Definition: FourthOrderInterpStencil.H:83
FourthOrderInterpStencil(const IntVect &a_bdryOffset, const int &a_refineCoarse, const int &a_degree=3)
Full constructor.
Definition: FourthOrderInterpStencil.H:33
static void Error(const char *const a_msg=m_nullString, int m_exitCode=CH_DEFAULT_ERROR_CODE)
Print out message to cerr and exit with the specified exit code.
static const IntVect Zero
Definition: IntVect.H:627
IntVect m_bdryOffset
displacement from domain boundary in each dimension, in range -(a_degree-1):(a_degree-1) ...
Definition: FourthOrderInterpStencil.H:89
A Rectangular Domain on an Integer Lattice.
Definition: Box.H:465
FArrayBox m_coarseToFineFab
m_stencilSize coefficients of coarse cells for each cell in m_baseFineBox
Definition: FourthOrderInterpStencil.H:101
An integer Vector in SpaceDim-dimensional space.
Definition: CHArray.H:42
Definition: FArrayBox.H:44
int m_stencilSize
number of coarse cells in the stencil
Definition: FourthOrderInterpStencil.H:95
FourthOrderInterpStencil()
Default constructor.
bool m_defined
whether define() has been called
Definition: FourthOrderInterpStencil.H:104