Line data Source code
1 0 : // Distributed under the MIT License. 2 : // See LICENSE.txt for details. 3 : 4 : #pragma once 5 : 6 : #include <iosfwd> 7 : 8 : #include "Utilities/ErrorHandling/Error.hpp" 9 : 10 : /// \cond 11 : namespace Options { 12 : struct Option; 13 : template <typename T> 14 : struct create_from_yaml; 15 : } // namespace Options 16 : /// \endcond 17 : 18 : namespace evolution::dg::subcell { 19 : /// \ingroup DgSubcellGroup 20 : /// The grid that is currently being used for the DG-subcell evolution. 21 0 : enum class ActiveGrid { Dg, Subcell }; 22 : 23 0 : std::ostream& operator<<(std::ostream& os, ActiveGrid active_grid); 24 : } // namespace evolution::dg::subcell 25 : 26 : template <> 27 0 : struct Options::create_from_yaml<evolution::dg::subcell::ActiveGrid> { 28 : template <typename Metavariables> 29 0 : static evolution::dg::subcell::ActiveGrid create( 30 : const Options::Option& options) { 31 : return create<void>(options); 32 : } 33 : }; 34 : 35 : template <> 36 0 : evolution::dg::subcell::ActiveGrid 37 : Options::create_from_yaml<evolution::dg::subcell::ActiveGrid>::create<void>( 38 : const Options::Option& options);