11 #ifndef _FOURTHORDERONEDSTENCIL_H_ 12 #define _FOURTHORDERONEDSTENCIL_H_ 18 #include "NamespaceHeader.H" 44 for (
int iWeight = 0; iWeight <=3; ++ iWeight)
56 void define(
const int& a_refRatio,
74 const int & a_interpDir ,
75 const IntVect & a_coarseRefineVect);
105 #include "NamespaceFooter.H"
void makeMomentMatrix(LAPACKMatrix &a_matrix, const Real &a_dx, const Real &a_vol)
FourthOrderOneDStencil(const FourthOrderOneDStencil &a_input)
Definition: FourthOrderOneDStencil.H:99
Class to manage coarse-to-fine spatial interpolation to all fine cells within a single particular coa...
Definition: FourthOrderOneDStencil.H:24
bool m_defined
whether define() has been called
Definition: FourthOrderOneDStencil.H:87
void apply(FArrayBox &a_fineFab, const FArrayBox &a_coarseFab, const IntVect &a_coarseIv, const int &a_interpDir, const IntVect &a_coarseRefineVect)
~FourthOrderOneDStencil()
Destructor.
Definition: FourthOrderOneDStencil.H:40
void calculateMoments(Vector< Real > &a_oneDMomentMap, const Real &a_dx, const Real &a_vol)
void define(const int &a_refRatio, const int &a_order)
Actual constructor.
double Real
Definition: REAL.H:33
Definition: LAPACKMatrix.H:24
Real ** m_weights
Definition: FourthOrderOneDStencil.H:83
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.
FourthOrderOneDStencil()
Default constructor.
int m_refRatio
Definition: FourthOrderOneDStencil.H:80
An integer Vector in SpaceDim-dimensional space.
Definition: CHArray.H:42
Definition: FArrayBox.H:45
int m_order
Definition: FourthOrderOneDStencil.H:81
void operator=(const FourthOrderOneDStencil &a_input)
Definition: FourthOrderOneDStencil.H:93
void calculateStencilWeights(LAPACKMatrix &a_weights, const LAPACKMatrix &a_matrix, const LAPACKMatrix &a_coarseData)