11 #ifndef _BACKWARDEULER_H_ 12 #define _BACKWARDEULER_H_ 25 #include "NamespaceHeader.H" 46 int a_numLevels = -1,
int a_verbosity = 3);
58 bool a_zeroPhi =
true);
69 int a_lbase,
int a_lmax,
bool a_zeroPhi);
124 #include "NamespaceFooter.H" BackwardEuler()
weak construction is bad. Ref Counted pointers are your friends.
Definition: BackwardEuler.H:118
void solveHelm(Vector< LevelData< FArrayBox > * > &a_ans, Vector< LevelData< FArrayBox > * > &a_rhs, int a_lbase, int a_lmax, Real a_dt, bool a_zeroPhi)
A reference-counting handle class.
Definition: RefCountedPtr.H:173
TGAHelmOp< LevelData< FArrayBox > > * newOp(const ProblemDomain &a_indexSpace, const AMRLevelOpFactory< LevelData< FArrayBox > > &a_opFact)
ProblemDomain m_level0Domain
Definition: BackwardEuler.H:100
A class to facilitate interaction with physical boundary conditions.
Definition: ProblemDomain.H:141
void oneStep(Vector< LevelData< FArrayBox > *> &a_phiNew, Vector< LevelData< FArrayBox > *> &a_phiOld, Vector< LevelData< FArrayBox > *> &a_source, const Real &a_dt, int a_lbase, int a_lmax, bool a_zeroPhi=true)
void operator=(const BackwardEuler &a_opin)
Definition: BackwardEuler.H:112
void createData(Vector< LevelData< FArrayBox > * > &a_source, int a_lbase, int a_lmax)
Vector< TGAHelmOp< LevelData< FArrayBox > > *> m_ops
Definition: BackwardEuler.H:98
Definition: AMRMultiGrid.H:308
int m_numLevels
Definition: BackwardEuler.H:103
Vector< int > m_refRat
Definition: BackwardEuler.H:101
void computeDiffusion(Vector< LevelData< FArrayBox > * > &a_diffusiveTerm, Vector< LevelData< FArrayBox > * > &a_phiOld, Vector< LevelData< FArrayBox > * > &a_src, Real a_oldTime, Real a_dt, int a_lbase, int a_lmax, bool a_zeroPhi)
void createEulerRHS(Vector< LevelData< FArrayBox > * > &a_ans, Vector< LevelData< FArrayBox > * > &a_source, Vector< LevelData< FArrayBox > * > &a_phiOld, int a_lbase, int a_lmax, Real a_dt)
double Real
Definition: REAL.H:33
RefCountedPtr< AMRMultiGrid< LevelData< FArrayBox > > > m_solver
Definition: BackwardEuler.H:102
Definition: BackwardEuler.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.
BackwardEuler(const BackwardEuler &a_opin)
Definition: BackwardEuler.H:107
void resetAlphaAndBeta(const Real &a_alpha, const Real &a_beta)
Vector< LevelData< FArrayBox > *> m_rhst
Definition: BackwardEuler.H:99
int m_verbosity
Definition: BackwardEuler.H:103
Definition: AMRMultiGrid.H:233
bool m_dataCreated
Definition: BackwardEuler.H:104