28 #include "NamespaceHeader.H" 94 void define(
int a_max_level,
96 const Box& a_prob_domain,
121 void define(
int a_max_level,
154 int a_proper_nest = 1);
161 void run(
Real a_max_time,
int a_max_step);
320 void plotPrefix(
const std::string& a_plotfile_prefix);
399 Chombo::Timer * timer(Chombo::Timer *a_timer = NULL );
409 int timeStep(
int a_level,
int a_stepsLeft,
bool a_coarseTimeBoundary);
415 void regrid(
int a_base_level);
430 bool needToRegrid(
int a_level,
int a_numStepsLeft)
const;
485 Chombo::Timer *m_timer;
489 #include "NamespaceFooter.H" int m_blockFactor
Definition: AMR.H:436
int m_lastcheck_step
Definition: AMR.H:472
void checkForSteadyState(bool a_steadyState)
Tells AMR to check each level for steady state and stop if we get there.
int m_finest_level_old
Definition: AMR.H:439
void writeCheckpointFile() const
Vector< int > m_regrid_intervals
Definition: AMR.H:455
bool m_useSubcycling
Definition: AMR.H:406
Vector< AMRLevel * > getAMRLevels()
void plotInterval(int a_plot_interval)
Tells AMR to write plot files after every a_plot_interval steps.
void writePlotFile() const
A class to facilitate interaction with physical boundary conditions.
Definition: ProblemDomain.H:141
Real m_fixedDt
Definition: AMR.H:448
void define(int a_max_level, const Vector< int > &a_ref_ratios, const Box &a_prob_domain, const AMRLevelFactory *const a_amrLevelFact)
void plotPeriod(Real a_plot_period)
Tells AMR to write plot files after every a_plot_period time units.
void checkpointPrefix(const std::string &a_checkpointfile_prefix)
void blockFactor(int a_blockFactor)
int m_max_base_grid_size
Definition: AMR.H:446
Vector< int > m_ref_ratios
Definition: AMR.H:453
Real m_cur_time
Definition: AMR.H:474
Vector< long long > m_cell_updates
Definition: AMR.H:476
bool m_checkForSteadyState
Definition: AMR.H:449
std::string m_checkpointfile_prefix
Definition: AMR.H:479
std::string m_plotfile_prefix
Definition: AMR.H:478
void regridIntervals(const Vector< int > &a_regridIntervals)
void setupForFixedHierarchyRun(const Vector< Vector< Box > > &a_amr_grids, int a_proper_nest=1)
bool m_isDefined
Definition: AMR.H:450
Vector< AMRLevel * > m_amrlevels
Definition: AMR.H:452
int m_finest_level
Definition: AMR.H:440
void regrid(int a_base_level)
Vector< int > m_reduction_factor
Definition: AMR.H:454
int m_checkpoint_interval
Definition: AMR.H:441
bool needToRegrid(int a_level, int a_numStepsLeft) const
Vector< Vector< Box > > m_amr_grids
Definition: AMR.H:468
int m_plot_interval
Definition: AMR.H:442
RefCountedPtr< MeshRefine > m_mesh_refine_ptr
Definition: AMR.H:465
int m_restart_step
Definition: AMR.H:471
void gridBufferSize(int a_grid_buffer_size)
int m_max_level
Definition: AMR.H:438
int maxBaseGridSize() const
bool m_isSetUp
Definition: AMR.H:451
Real getCurrentTime() const
double Real
Definition: REAL.H:33
virtual void makeBaseLevelMesh(Vector< Box > &a_grids) const
int timeStep(int a_level, int a_stepsLeft, bool a_coarseTimeBoundary)
int m_verbosity
Definition: AMR.H:481
Real m_maxDtGrow
Definition: AMR.H:462
Vector< int > m_steps_since_regrid
Definition: AMR.H:475
Real m_dt_base
Definition: AMR.H:457
Real m_dt_tolerance_factor
Definition: AMR.H:447
Framework for Berger-Oliger timestepping for AMR.
Definition: AMR.H:53
void initialTime(Real a_initialTime)
void dtToleranceFactor(Real a_dt_tolerance_factor)
Real m_fillRatio
Definition: AMR.H:437
A Rectangular Domain on an Integer Lattice.
Definition: Box.H:465
void run(Real a_max_time, int a_max_step)
void schedule(RefCountedPtr< Scheduler > a_scheduler)
Sets up a schedule for periodically-called functions.
void checkpointInterval(int a_checkpoint_interval)
Real m_plot_period
Definition: AMR.H:443
RefCountedPtr< Scheduler > m_scheduler
Definition: AMR.H:483
int m_cur_step
Definition: AMR.H:470
Handle to a particular group in an HDF file.
Definition: CH_HDF5.H:294
void plotPrefix(const std::string &a_plotfile_prefix)
Factory class to produce an AMRLevel.
Definition: AMRLevelFactory.H:22
Vector< Real > m_dt_cur
Definition: AMR.H:461
void fillRatio(Real a_fillRat)
void useSubcyclingInTime(bool a_useSubcycling)
Vector< Real > m_dt_new
Definition: AMR.H:459
static int s_step
Definition: AMR.H:58
Real m_next_plot_time
Definition: AMR.H:444
bool m_use_meshrefine
Definition: AMR.H:466
void setupForRestart(HDF5Handle &a_handle)
int m_max_grid_size
Definition: AMR.H:445
void setMeshRefine(RefCountedPtr< MeshRefine > a_mesh_refine_ptr)
Real m_time_eps
Definition: AMR.H:463