Line data Source code
1 0 : // Distributed under the MIT License. 2 : // See LICENSE.txt for details. 3 : 4 : #pragma once 5 : 6 : #include "DataStructures/DataBox/Protocols/Mutator.hpp" 7 : #include "Time/Tags/StepperErrorEstimatesEnabled.hpp" 8 : #include "Utilities/Gsl.hpp" 9 : #include "Utilities/ProtocolHelpers.hpp" 10 : #include "Utilities/TMPL.hpp" 11 : 12 : /// Initialization mutator disabling error estimates for executables 13 : /// with non-standard time-stepping. 14 1 : struct NoStepperErrorEstimates : tt::ConformsTo<db::protocols::Mutator> { 15 0 : using return_tags = tmpl::list<::Tags::StepperErrorEstimatesEnabled>; 16 0 : using argument_tags = tmpl::list<>; 17 0 : static void apply(const gsl::not_null<bool*> needed) { *needed = false; } 18 : };