11 #ifndef _MFBACKWARDEULER_H_ 12 #define _MFBACKWARDEULER_H_ 25 #include "NamespaceHeader.H" 48 int a_numLevels = -1,
int a_verbosity = 3);
62 bool a_zeroPhi =
true);
95 bool a_homogeneousBC);
141 #include "NamespaceFooter.H" void solveHelm(Vector< LevelData< MFCellFAB > * > &a_ans, Vector< LevelData< MFCellFAB > * > &a_rhs, int a_lbase, int a_lmax, Real a_dt, bool a_zeroPhi)
void createEulerRHS(Vector< LevelData< MFCellFAB > * > &a_ans, Vector< LevelData< MFCellFAB > * > &a_source, Vector< LevelData< MFCellFAB > * > &a_phiOld, int a_lbase, int a_lmax, Real a_dt)
A reference-counting handle class.
Definition: RefCountedPtr.H:173
Definition: MFBackwardEuler.H:33
A class to facilitate interaction with physical boundary conditions.
Definition: ProblemDomain.H:141
ProblemDomain m_level0Domain
Definition: MFBackwardEuler.H:115
Vector< int > m_refRat
Definition: MFBackwardEuler.H:116
Definition: AMRMultiGrid.H:308
void applyHelm(Vector< LevelData< MFCellFAB > *> &a_ans, Vector< LevelData< MFCellFAB > *> &a_phi, int a_lbase, int a_lmax, Real a_mu, Real a_dt, bool a_homogeneousBC)
TGAHelmOp< LevelData< MFCellFAB > > * newOp(const ProblemDomain &a_indexSpace, const AMRLevelOpFactory< LevelData< MFCellFAB > > &a_opFact)
Vector< LevelData< MFCellFAB > *> m_rhst
Definition: MFBackwardEuler.H:114
MFBackwardEuler()
weak construction is bad. Ref Counted pointers are your friends.
Definition: MFBackwardEuler.H:133
MFBackwardEuler(const MFBackwardEuler &a_opin)
Definition: MFBackwardEuler.H:122
double Real
Definition: REAL.H:33
int m_numLevels
Definition: MFBackwardEuler.H:118
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.
void resetAlphaAndBeta(const Real &a_alpha, const Real &a_beta)
int m_verbosity
Definition: MFBackwardEuler.H:118
bool m_dataCreated
Definition: MFBackwardEuler.H:119
void residual(Vector< LevelData< MFCellFAB > * > &a_error, Vector< LevelData< MFCellFAB > * > &a_phiNew, Vector< LevelData< MFCellFAB > * > &a_phiOld, Vector< LevelData< MFCellFAB > * > &a_source, const Real &a_dt, int a_lbase, int a_lmax, Real a_told)
void oneStep(Vector< LevelData< MFCellFAB > *> &a_phiNew, Vector< LevelData< MFCellFAB > *> &a_phiOld, Vector< LevelData< MFCellFAB > *> &a_source, const Real &a_dt, int a_lbase, int a_lmax, Real a_told=0, bool a_zeroPhi=true)
void operator=(const MFBackwardEuler &a_opin)
Definition: MFBackwardEuler.H:127
Vector< RefCountedPtr< TGAHelmOp< LevelData< MFCellFAB > > > > m_ops
Definition: MFBackwardEuler.H:113
void setTime(Real a_time)
Definition: AMRMultiGrid.H:233
RefCountedPtr< AMRMultiGrid< LevelData< MFCellFAB > > > m_solver
Definition: MFBackwardEuler.H:117
void createData(Vector< LevelData< MFCellFAB > * > &a_source, int a_lbase, int a_lmax)