Line data Source code
1 0 : // Distributed under the MIT License. 2 : // See LICENSE.txt for details. 3 : 4 : #pragma once 5 : 6 : #include "Options/Options.hpp" 7 : 8 : namespace imex { 9 : /// IMEX implementations 10 1 : enum class Mode { 11 : /// Solve the implicit equation using a nonlinear solver. 12 : Implicit, 13 : /// Solve a linearized version of the implicit equation. 14 : SemiImplicit, 15 : }; 16 : } // namespace imex 17 : 18 : template <> 19 0 : struct Options::create_from_yaml<imex::Mode> { 20 : template <typename Metavariables> 21 0 : static imex::Mode create(const Options::Option& options) { 22 : return create<void>(options); 23 : } 24 : }; 25 : 26 : template <> 27 0 : imex::Mode Options::create_from_yaml<imex::Mode>::create<void>( 28 : const Options::Option& options);