WenoType.hpp
1 // Distributed under the MIT License.
2 // See LICENSE.txt for details.
3 
4 #pragma once
5 
6 #include <ostream>
7 
8 /// \cond
9 class Option;
10 template <typename T>
11 struct create_from_yaml;
12 /// \endcond
13 
14 namespace Limiters {
15 /// \ingroup LimitersGroup
16 /// \brief Possible types of the WENO limiter
17 ///
18 /// \see Limiters::Weno for a description and references.
19 enum class WenoType { Hweno, SimpleWeno };
20 
21 std::ostream& operator<<(std::ostream& os,
22  Limiters::WenoType weno_type) noexcept;
23 } // namespace Limiters
24 
25 template <>
27  template <typename Metavariables>
28  static Limiters::WenoType create(const Option& options) {
29  return create<void>(options);
30  }
31 };
32 template <>
34  const Option& options);
The type that options are passed around as. Contains YAML node data and an OptionContext.
Definition: Options.hpp:106
Used by the parser to create an object. The default action is to parse options using T::options...
Definition: MinmodType.hpp:10
constexpr auto create(Args &&... args)
Create a new DataBox.
Definition: DataBox.hpp:1285
WenoType
Possible types of the WENO limiter.
Definition: WenoType.hpp:19
Things relating to limiting.
Definition: HwenoModifiedSolution.cpp:109