An adaptive solver with a predefined adaption. More...
#include <AMRPreAdaptSolver.h>
Public Member Functions | |
AMRPreAdaptSolver (typename base::integrator_type &integ, typename base::initial_condition_type &init, typename base::boundary_conditions_type &bc) | |
virtual | ~AMRPreAdaptSolver () |
virtual void | register_at (ControlDevice &Ctrl, const std::string &prefix) |
virtual void | register_at (ControlDevice &Ctrl) |
virtual void | SetupData () |
virtual void | Initialize_ (const double &dt_start) |
virtual double | Tick (int VariableTimeStepping, const double dtv[], const double cflv[], int &Rejections) |
Protected Attributes | |
int | SwitchTime |
int | li [5] |
int | ls [5] |
patch_type * | PatchListInit [5] |
patch_type * | PatchListSwitch [5] |
An adaptive solver with a predefined adaption.
This class is especially for development.
AMRPreAdaptSolver< VectorType, FixupType, FlagType, dim >::AMRPreAdaptSolver | ( | typename base::integrator_type & | integ, | |
typename base::initial_condition_type & | init, | |||
typename base::boundary_conditions_type & | bc | |||
) | [inline] |
References AMRPreAdaptSolver< VectorType, FixupType, FlagType, dim >::li, AMRPreAdaptSolver< VectorType, FixupType, FlagType, dim >::ls, MAXLEVELS, AMRPreAdaptSolver< VectorType, FixupType, FlagType, dim >::PatchListInit, and AMRPreAdaptSolver< VectorType, FixupType, FlagType, dim >::PatchListSwitch.
virtual AMRPreAdaptSolver< VectorType, FixupType, FlagType, dim >::~AMRPreAdaptSolver | ( | ) | [inline, virtual] |
virtual void AMRPreAdaptSolver< VectorType, FixupType, FlagType, dim >::Initialize_ | ( | const double & | dt_start | ) | [inline, virtual] |
Reimplemented from AMRSolver< VectorType, FixupType, FlagType, dim >.
References Bucket< Type >::add(), AMRSolverBase< VectorType, FixupType, FlagType, dim >::GH(), AMRSolver< VectorType, FixupType, FlagType, dim >::Initialize_(), AMRPreAdaptSolver< VectorType, FixupType, FlagType, dim >::li, MaxLevel(), MAXLEVELS, AMRPreAdaptSolver< VectorType, FixupType, FlagType, dim >::PatchListInit, RecomposeHierarchy(), Refine(), RefinedBy(), AMRSolver< VectorType, FixupType, FlagType, dim >::RegridEvery, and StepSize().
virtual void AMRPreAdaptSolver< VectorType, FixupType, FlagType, dim >::register_at | ( | ControlDevice & | Ctrl | ) | [inline, virtual] |
Reimplemented from AMRSolver< VectorType, FixupType, FlagType, dim >.
References AMRPreAdaptSolver< VectorType, FixupType, FlagType, dim >::register_at().
virtual void AMRPreAdaptSolver< VectorType, FixupType, FlagType, dim >::register_at | ( | ControlDevice & | Ctrl, | |
const std::string & | prefix | |||
) | [inline, virtual] |
Reimplemented from AMRSolver< VectorType, FixupType, FlagType, dim >.
References ControlDevice::getSubDevice(), AMRPreAdaptSolver< VectorType, FixupType, FlagType, dim >::li, AMRSolverBase< VectorType, FixupType, FlagType, dim >::LocCtrl, AMRPreAdaptSolver< VectorType, FixupType, FlagType, dim >::ls, MAXLEVELS, AMRSolver< VectorType, FixupType, FlagType, dim >::register_at(), RegisterAt(), and AMRPreAdaptSolver< VectorType, FixupType, FlagType, dim >::SwitchTime.
Referenced by AMRPreAdaptSolver< VectorType, FixupType, FlagType, dim >::register_at(), and AMRPreAdaptSolver< VectorType, FixupType, FlagType, dim >::SetupData().
virtual void AMRPreAdaptSolver< VectorType, FixupType, FlagType, dim >::SetupData | ( | ) | [inline, virtual] |
Reimplemented from AMRSolver< VectorType, FixupType, FlagType, dim >.
References GetFileControlDevice(), AMRPreAdaptSolver< VectorType, FixupType, FlagType, dim >::li, AMRPreAdaptSolver< VectorType, FixupType, FlagType, dim >::ls, MAXLEVELS, AMRPreAdaptSolver< VectorType, FixupType, FlagType, dim >::PatchListInit, AMRPreAdaptSolver< VectorType, FixupType, FlagType, dim >::PatchListSwitch, AMRPreAdaptSolver< VectorType, FixupType, FlagType, dim >::register_at(), AMRSolver< VectorType, FixupType, FlagType, dim >::SetupData(), and ControlDevice::update().
virtual double AMRPreAdaptSolver< VectorType, FixupType, FlagType, dim >::Tick | ( | int | VariableTimeStepping, | |
const double | dtv[], | |||
const double | cflv[], | |||
int & | Rejections | |||
) | [inline, virtual] |
Reimplemented from AMRSolver< VectorType, FixupType, FlagType, dim >.
References Bucket< Type >::add(), CurrentTime(), AMRSolverBase< VectorType, FixupType, FlagType, dim >::GH(), AMRPreAdaptSolver< VectorType, FixupType, FlagType, dim >::ls, MaxLevel(), MAXLEVELS, AMRPreAdaptSolver< VectorType, FixupType, FlagType, dim >::PatchListSwitch, RecomposeHierarchy(), Refine(), RefinedBy(), StepSize(), AMRPreAdaptSolver< VectorType, FixupType, FlagType, dim >::SwitchTime, and AMRSolver< VectorType, FixupType, FlagType, dim >::Tick().
int AMRPreAdaptSolver< VectorType, FixupType, FlagType, dim >::li[5] [protected] |
Referenced by AMRPreAdaptSolver< VectorType, FixupType, FlagType, dim >::AMRPreAdaptSolver(), AMRPreAdaptSolver< VectorType, FixupType, FlagType, dim >::Initialize_(), AMRPreAdaptSolver< VectorType, FixupType, FlagType, dim >::register_at(), and AMRPreAdaptSolver< VectorType, FixupType, FlagType, dim >::SetupData().
int AMRPreAdaptSolver< VectorType, FixupType, FlagType, dim >::ls[5] [protected] |
Referenced by AMRPreAdaptSolver< VectorType, FixupType, FlagType, dim >::AMRPreAdaptSolver(), AMRPreAdaptSolver< VectorType, FixupType, FlagType, dim >::register_at(), AMRPreAdaptSolver< VectorType, FixupType, FlagType, dim >::SetupData(), and AMRPreAdaptSolver< VectorType, FixupType, FlagType, dim >::Tick().
patch_type* AMRPreAdaptSolver< VectorType, FixupType, FlagType, dim >::PatchListInit[5] [protected] |
Referenced by AMRPreAdaptSolver< VectorType, FixupType, FlagType, dim >::AMRPreAdaptSolver(), AMRPreAdaptSolver< VectorType, FixupType, FlagType, dim >::Initialize_(), AMRPreAdaptSolver< VectorType, FixupType, FlagType, dim >::SetupData(), and AMRPreAdaptSolver< VectorType, FixupType, FlagType, dim >::~AMRPreAdaptSolver().
patch_type* AMRPreAdaptSolver< VectorType, FixupType, FlagType, dim >::PatchListSwitch[5] [protected] |
Referenced by AMRPreAdaptSolver< VectorType, FixupType, FlagType, dim >::AMRPreAdaptSolver(), AMRPreAdaptSolver< VectorType, FixupType, FlagType, dim >::SetupData(), AMRPreAdaptSolver< VectorType, FixupType, FlagType, dim >::Tick(), and AMRPreAdaptSolver< VectorType, FixupType, FlagType, dim >::~AMRPreAdaptSolver().
int AMRPreAdaptSolver< VectorType, FixupType, FlagType, dim >::SwitchTime [protected] |