|
AdaptiveSimulatorTimer.hpp
Go to the documentation of this file.
Simulation timer for adaptive time stepping. Definition: AdaptiveSimulatorTimer.hpp:42 const double start_time_ Definition: AdaptiveSimulatorTimer.hpp:139 bool last_step_failed_ Definition: AdaptiveSimulatorTimer.hpp:149 void advance() override advance time by currentStepLength Definition: AdaptiveSimulatorTimer.hpp:62 int current_step_ Definition: AdaptiveSimulatorTimer.hpp:146 double reportStepTotalTime() const double stepLengthTaken() const override Previous step length. This is the length of the step that was taken to arrive at this time. std::optional< double > report_step_total_time_ Optional report-step end time for the "report step view" accessors. Same population pattern as report... Definition: AdaptiveSimulatorTimer.hpp:157 void setReportStepSubstepOffset(int n) Definition: AdaptiveSimulatorTimer.hpp:130 std::vector< double > steps_ Definition: AdaptiveSimulatorTimer.hpp:148 const int report_step_ Definition: AdaptiveSimulatorTimer.hpp:141 double minStepLength() const return min step length used so far std::unique_ptr< SimulatorTimerInterface > clone() const override return copy of object std::optional< double > report_step_start_time_ Optional report-step start time for the "report step view" accessors. Set by the rescoup outer loop o... Definition: AdaptiveSimulatorTimer.hpp:154 bool lastStepFailed() const override Return true if last time step failed. Definition: AdaptiveSimulatorTimer.hpp:111 bool initialStep() const override Whether this is the first step. void provideTimeStepEstimate(const double dt_estimate) provide and estimate for new time step size double current_time_ Definition: AdaptiveSimulatorTimer.hpp:144 boost::posix_time::ptime startDateTime() const override start date time of simulation void report(std::ostream &os) const report start and end time as well as used steps so far const double total_time_ Definition: AdaptiveSimulatorTimer.hpp:140 void setLastStepFailed(bool last_step_failed) tell the timestepper whether timestep failed or not Definition: AdaptiveSimulatorTimer.hpp:114 double totalTime() const int reportStepSubstepNum() const double currentStepLength() const override void setReportStepStartTime(double t) Definition: AdaptiveSimulatorTimer.hpp:128 std::shared_ptr< boost::posix_time::ptime > start_date_time_ Definition: AdaptiveSimulatorTimer.hpp:138 AdaptiveSimulatorTimer(const boost::posix_time::ptime simulation_start_time, const double step_length, const double elapsed_time, const double last_step_taken, const int report_step, const double max_time_step=std::numeric_limits< double >::max()) constructor taking a simulator timer to determine start and end time int report_step_substep_offset_ Number of substeps already taken in this report step before this timer was constructed (i.... Definition: AdaptiveSimulatorTimer.hpp:162 int reportStepSubstepOffset() const Definition: AdaptiveSimulatorTimer.hpp:132 bool done() const override double reportStepStartTime() const Reservoir coupling constructs a fresh timer per sync chunk, so start_time_, total_time_,... void setCurrentStepLength(double dt) int currentStepNum() const override void setReportStepTotalTime(double t) Definition: AdaptiveSimulatorTimer.hpp:129 double averageStepLength() const return average step length used so far const double max_time_step_ Definition: AdaptiveSimulatorTimer.hpp:142 int reportStepNum() const override return current report step double maxStepLength() const return max step length used so far AdaptiveSimulatorTimer & operator++() advance time by currentStepLength double simulationTimeElapsed() const override Interface class for SimulatorTimer objects, to be improved. Definition: SimulatorTimerInterface.hpp:34 Definition: blackoilbioeffectsmodules.hh:45 |