SpECTRE  v2026.06.09.01
Loading...
Searching...
No Matches
RequestsStepperErrorTolerances Struct Referenceabstract

Base class for requesting time stepper error tolerances. More...

#include <RequestsStepperErrorTolerances.hpp>

Public Member Functions

virtual std::unordered_map< std::type_index, StepperErrorTolerancestolerances () const =0
 A map from the type of a variables tag to the tolerances for that variable.

Detailed Description

Base class for requesting time stepper error tolerances.

Member Function Documentation

◆ tolerances()

virtual std::unordered_map< std::type_index, StepperErrorTolerances > RequestsStepperErrorTolerances::tolerances ( ) const
pure virtual

A map from the type of a variables tag to the tolerances for that variable.

Note
The use of std::type_index is stable in this situation because while name(), before(), and hash() are implementation defined or unspecified, the C++ standard guarantees that two std::type_index are equal only if the underlying types are equal and they are not equal if the types are different. This means we can use this safely in a std::unordered_map.

Implemented in Events::ChangeSlabSize, StepChoosers::ErrorControl< StepChooserUse, EvolvedVariableTag, ErrorControlSelector >, and StepChoosers::FixedLtsRatio.


The documentation for this struct was generated from the following file:
  • src/Time/RequestsStepperErrorTolerances.hpp