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/Tag.hpp" 7 : #include "Time/OptionTags/MinimumTimeStep.hpp" 8 : #include "Utilities/TMPL.hpp" 9 : 10 : namespace Tags { 11 : /// \ingroup DataBoxTagsGroup 12 : /// \ingroup TimeGroup 13 : /// \brief The minimum step size without triggering an error 14 1 : struct MinimumTimeStep : db::SimpleTag { 15 0 : using type = double; 16 0 : using option_tags = tmpl::list<::OptionTags::MinimumTimeStep>; 17 0 : static constexpr bool is_overlayable = true; 18 : 19 0 : static constexpr bool pass_metavariables = false; 20 0 : static type create_from_options(const type option) { return option; } 21 : }; 22 : } // namespace Tags