SPH
|
Helper criterion, wrapping multiple criteria under ITimeStepCriterion interface. More...
#include <TimeStepCriterion.h>
Public Member Functions | |
MultiCriterion (const RunSettings &settings) | |
MultiCriterion (Array< AutoPtr< ITimeStepCriterion >> &&criteria, const Float maxChange, const Float initial) | |
virtual TimeStep | compute (IScheduler &scheduler, Storage &storage, const Float maxStep, Statistics &stats) override |
Computes the value of the time step. More... | |
Public Member Functions inherited from Polymorphic | |
virtual | ~Polymorphic () |
Helper criterion, wrapping multiple criteria under ITimeStepCriterion interface.
Time step critaria can be added automatically based on parameter RunSettingsId::TIMESTEPPING_CRITERION in settings, or they can be specified explicitly. Each criterion computes a time step and the minimal time step of these is returned.
Definition at line 159 of file TimeStepCriterion.h.
|
explicit |
Definition at line 346 of file TimeStepCriterion.cpp.
MultiCriterion::MultiCriterion | ( | Array< AutoPtr< ITimeStepCriterion >> && | criteria, |
const Float | maxChange, | ||
const Float | initial | ||
) |
Definition at line 366 of file TimeStepCriterion.cpp.
|
overridevirtual |
Computes the value of the time step.
scheduler | Scheduler than can be used for parallelization. |
storage | Storage containing all physical quantities from which the time step is determined. |
maxStep | Maximal allowed time step. |
stats | Used to save statistics of the criterion. |
Implements ITimeStepCriterion.
Definition at line 373 of file TimeStepCriterion.cpp.