AdaptInfo.hpp
694 auto result = scalContents_.emplace(std::piecewise_construct, std::forward_as_tuple(key), std::forward_as_tuple(name_ + "[" + key + "]") );
Stores adapt infos for a scalar problem or for one component of a vector valued problem.
Definition AdaptInfo.hpp:36
int coarsenAllowed
true if coarsening is allowed, false otherwise.
Definition AdaptInfo.hpp:69
double timeErrLow
Lower bound for the time error.
Definition AdaptInfo.hpp:66
double est_t_sum
Sum of all time error estimates.
Definition AdaptInfo.hpp:45
double est_t_max
Maximum of all time error estimates.
Definition AdaptInfo.hpp:51
double spaceTolerance
Tolerance for the (absolute or relative) error.
Definition AdaptInfo.hpp:57
double timeRelativeTolerance
Relative time tolerance.
Definition AdaptInfo.hpp:63
double est_max
maximal local error estimate.
Definition AdaptInfo.hpp:48
double timeTolerance
Time tolerance.
Definition AdaptInfo.hpp:60
double est_sum
Sum of all error estimates.
Definition AdaptInfo.hpp:42
double fac_max
factors to combine max and integral time estimate
Definition AdaptInfo.hpp:54
int refinementAllowed
true if refinement is allowed, false otherwise.
Definition AdaptInfo.hpp:72
void setEndTime(double time)
Sets endTime_ = time.
Definition AdaptInfo.hpp:543
void setMaxTimeIteration(int it)
Sets maxTimeIteration_.
Definition AdaptInfo.hpp:249
int spaceIteration() const
Returns spaceIteration_.
Definition AdaptInfo.hpp:165
void incSpaceIteration()
Increments spaceIteration_ by 1;.
Definition AdaptInfo.hpp:189
void setSpaceIteration(int it)
Sets spaceIteration_.
Definition AdaptInfo.hpp:171
int maxTimestepIteration() const
Returns maxTimestepIteration_.
Definition AdaptInfo.hpp:213
void setStartTime(double time)
Sets startTime_ = time.
Definition AdaptInfo.hpp:537
double const & timestep() const
Gets timestep_.
Definition AdaptInfo.hpp:486
void incTimestepNumber()
Increments timestepNumber_ by 1;.
Definition AdaptInfo.hpp:282
double timeErrLow(Key key) const
Returns timeErrLow.
Definition AdaptInfo.hpp:561
std::map< Key, ScalContent > scalContents_
Scalar adapt infos.
Definition AdaptInfo.hpp:770
bool isCoarseningAllowed(Key key) const
Returns whether coarsening is allowed or not.
Definition AdaptInfo.hpp:573
double setTimestep(double t)
Sets timestep_.
Definition AdaptInfo.hpp:473
int maxTimeIteration_
Maximal number of time iterations.
Definition AdaptInfo.hpp:721
void setTimeIteration(int it)
Sets timeIteration_.
Definition AdaptInfo.hpp:225
int timestepIteration_
Current timestep iteration.
Definition AdaptInfo.hpp:712
virtual bool spaceToleranceReached() const
Returns whether space tolerance is reached.
Definition AdaptInfo.hpp:86
double timeRelativeTolerance(Key key) const
Returns timeRelativeTolerance.
Definition AdaptInfo.hpp:443
bool isRefinementAllowed(Key key) const
Returns whether coarsening is allowed or not.
Definition AdaptInfo.hpp:585
int maxSpaceIteration_
maximal allowed number of iterations of the adaptive procedure; if maxIteration <= 0,...
Definition AdaptInfo.hpp:709
double time_
Actual time, end of time interval for current time step.
Definition AdaptInfo.hpp:724
void incTimeIteration()
Increments timesIteration_ by 1;.
Definition AdaptInfo.hpp:237
virtual bool spaceToleranceReached(Key key) const
Returns whether space tolerance of component associated with key is reached.
Definition AdaptInfo.hpp:97
double minTimestep() const
Gets minTimestep_.
Definition AdaptInfo.hpp:519
double spaceTolerance(Key key) const
Returns spaceTolerance.
Definition AdaptInfo.hpp:407
int timeIteration() const
Returns timeIteration_.
Definition AdaptInfo.hpp:231
double timeEst() const
Returns timeEst_ the estimated overall time error.
Definition AdaptInfo.hpp:396
int timestepNumber() const
Returns timestepNumber_.
Definition AdaptInfo.hpp:255
void printTimeErrorLowInfo() const
Print debug information about time error and its bound.
Definition AdaptInfo.cpp:49
int maxTimeIteration() const
Returns maxTimeIteration_.
Definition AdaptInfo.hpp:243
double timeEstMax(Key key) const
Returns est_max.
Definition AdaptInfo.hpp:372
virtual bool timeToleranceReached() const
Returns whether time tolerance is reached.
Definition AdaptInfo.hpp:112
void setTimestepIteration(int it)
Sets timestepIteration_.
Definition AdaptInfo.hpp:195
int timestepIteration() const
Returns timestepIteration_.
Definition AdaptInfo.hpp:201
int timestepNumber_
Number of current time step.
Definition AdaptInfo.hpp:745
double maxTimestep() const
Gets maxTimestep_.
Definition AdaptInfo.hpp:531
double globalTimeTolerance_
tolerance for the overall time error
Definition AdaptInfo.hpp:767
void setEstMax(double e, Key key)
Sets est_max.
Definition AdaptInfo.hpp:300
int maxSolverIterations_
maximal number of iterations needed of linear or nonlinear solver
Definition AdaptInfo.hpp:758
void resetTimeValues(double newTimeStep, double newStartTime, double newEndTime)
Resets timestep, current time and time boundaries without any check. Is used by the parareal algorith...
Definition AdaptInfo.hpp:680
virtual bool timeToleranceReached(Key key) const
Returns whether time tolerance of component associated with key is reached.
Definition AdaptInfo.hpp:122
void setTimestepNumber(int num)
Sets timestepNumber.
Definition AdaptInfo.hpp:261
int maxSpaceIteration() const
Returns maxSpaceIteration_.
Definition AdaptInfo.hpp:177
double lastProcessedTimestep_
Last processed time step size of finished iteration.
Definition AdaptInfo.hpp:736
void setEstSum(double e, Key key)
Sets est_sum.
Definition AdaptInfo.hpp:288
void setMaxTimestepIteration(int it)
Sets maxTimestepIteration.
Definition AdaptInfo.hpp:219
void setTimeEstSum(double e, Key key)
Sets est_t_sum.
Definition AdaptInfo.hpp:324
int spaceIteration_
Current space iteration.
Definition AdaptInfo.hpp:703
double timeTolerance(Key key) const
Returns timeTolerance.
Definition AdaptInfo.hpp:431
void setTimeEstMax(double e, Key key)
Sets est_max.
Definition AdaptInfo.hpp:312
void setNumberOfTimesteps(int num)
Sets nTimesteps.
Definition AdaptInfo.hpp:276
int numberOfTimesteps() const
Returns nTimesteps_.
Definition AdaptInfo.hpp:270
int nTimesteps_
Per default this value is 0 and not used. If it is set to a non-zero value, the computation of the st...
Definition AdaptInfo.hpp:752
void reset()
Resets all variables to zero (or something equivalent)
Definition AdaptInfo.cpp:67
void setMinTimestep(double t)
Sets minTimestep_.
Definition AdaptInfo.hpp:513
virtual bool timeErrorLow() const
Returns whether time error is under its lower bound.
Definition AdaptInfo.hpp:137
int timeIteration_
Current time iteration.
Definition AdaptInfo.hpp:718
int solverIterations_
number of iterations needed of linear or nonlinear solver
Definition AdaptInfo.hpp:755
void maxSpaceIteration(int it)
Sets maxSpaceIteration_.
Definition AdaptInfo.hpp:183
void setSpaceTolerance(Key key, double tol)
Sets spaceTolerance.
Definition AdaptInfo.hpp:419
int maxTimestepIteration_
Maximal number of iterations for choosing a timestep.
Definition AdaptInfo.hpp:715
double timeEstSum(Key key) const
Returns est_t_sum.
Definition AdaptInfo.hpp:384
void incTimestepIteration()
Increments timestepIteration_ by 1;.
Definition AdaptInfo.hpp:207
void setMaxTimestep(double t)
Sets maxTimestep_.
Definition AdaptInfo.hpp:525
double estTSum(Key key) const
Returns est_t_sum.
Definition AdaptInfo.hpp:348
Contains all classes, functions and type aliases of the AMDiS library.
Definition AdaptBase.hpp:7