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 "Evolution/Imex/Tags/OptionGroup.hpp"
8 : #include "Options/Options.hpp"
9 :
10 : namespace imex {
11 : namespace OptionTags {
12 0 : struct SolveTolerance {
13 0 : static constexpr Options::String help =
14 : "Absolute tolerance for IMEX solve (only used in Implicit mode)";
15 0 : using type = double;
16 0 : using group = Group;
17 : };
18 : } // namespace OptionTags
19 :
20 : namespace Tags {
21 0 : struct SolveTolerance : db::SimpleTag {
22 0 : using type = double;
23 0 : using option_tags = tmpl::list<::imex::OptionTags::SolveTolerance>;
24 :
25 0 : static constexpr bool pass_metavariables = false;
26 0 : static type create_from_options(const type& tolerance) { return tolerance; }
27 : };
28 : } // namespace Tags
29 : } // namespace imex
|