Line data Source code
1 0 : // Distributed under the MIT License. 2 : // See LICENSE.txt for details. 3 : 4 : #pragma once 5 : 6 : #include <typeindex> 7 : #include <unordered_map> 8 : 9 : #include "Time/StepperErrorTolerances.hpp" 10 : 11 : /// \ingroup TimeGroup 12 : /// Base class for requesting time stepper error tolerances. 13 1 : struct RequestsStepperErrorTolerances { 14 : public: 15 : /// A map from the type of a variables tag to the tolerances for 16 : /// that variable. 17 : virtual std::unordered_map<std::type_index, StepperErrorTolerances> 18 1 : tolerances() const = 0; 19 : 20 : protected: 21 0 : RequestsStepperErrorTolerances() = default; 22 0 : ~RequestsStepperErrorTolerances() = default; 23 : };