11 #ifndef _FOURTHORDERINTERPSTENCIL_H_ 12 #define _FOURTHORDERINTERPSTENCIL_H_ 17 #include "NamespaceHeader.H" 36 const int& a_refineCoarse,
38 const int& a_degree = 3,
42 define(a_bdryOffset, a_refineCoarse, a_degree, a_fixedDims);
59 const int& a_refineCoarse,
61 const int& a_degree = 3,
80 const IntVect& a_coarseDataCell,
144 #include "NamespaceFooter.H" Real power1d0avg(Real a_lower, Real a_upper, int a_ipwr) const
~FourthOrderInterpStencil()
Destructor.
FourthOrderInterpStencil(const IntVect &a_bdryOffset, const int &a_refineCoarse, const int &a_degree=3, Interval a_fixedDims=Interval())
Full constructor.
Definition: FourthOrderInterpStencil.H:33
IntVect m_refineVect
1 in m_fixedDims, m_refineCoarse in other dimensions
Definition: FourthOrderInterpStencil.H:96
void define(const IntVect &a_bdryOffset, const int &a_refineCoarse, const int &a_degree=3, Interval a_fixedDims=Interval())
Actual constructor.
Box m_baseFineBox
0:(m_refineCoarse-1) in every dimension
Definition: FourthOrderInterpStencil.H:102
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:90
void operator=(const FourthOrderInterpStencil &a_input)
Definition: FourthOrderInterpStencil.H:132
FourthOrderInterpStencil(const FourthOrderInterpStencil &a_input)
Definition: FourthOrderInterpStencil.H:138
Class to manage coarse-to-fine spatial interpolation to all fine cells within a single particular coa...
Definition: FourthOrderInterpStencil.H:23
Interval m_fixedDims
dimensions that are fixed, not interpolated
Definition: FourthOrderInterpStencil.H:93
int m_refineCoarse
refinement ratio
Definition: FourthOrderInterpStencil.H:87
Structure for passing component ranges in code.
Definition: Interval.H:23
Vector< IntVect > m_coarseBaseIndices
length m_stencilSize, lists indices of coarse cell corresponding to each component of m_coarseToFineF...
Definition: FourthOrderInterpStencil.H:109
Real power1dfineind0avg(int a_offset, int a_ipwr) const
double Real
Definition: REAL.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:658
IntVect m_bdryOffset
displacement from domain boundary in each dimension, in range -(a_degree-1):(a_degree-1) ...
Definition: FourthOrderInterpStencil.H:99
A Rectangular Domain on an Integer Lattice.
Definition: Box.H:469
FArrayBox m_coarseToFineFab
m_stencilSize coefficients of coarse cells for each cell in m_baseFineBox
Definition: FourthOrderInterpStencil.H:112
An integer Vector in SpaceDim-dimensional space.
Definition: CHArray.H:42
Definition: FArrayBox.H:45
int m_stencilSize
number of coarse cells in the stencil
Definition: FourthOrderInterpStencil.H:106
FourthOrderInterpStencil()
Default constructor.
bool m_defined
whether define() has been called
Definition: FourthOrderInterpStencil.H:117
Real power1dcoarseind0avg(int a_offset, int a_ipwr) const