34 #include "libmesh/getpot.h"
46 std::string
solver_type = input(
"SolverOptions/solver_type",
"DIE!");
48 if(
transient && !mesh_adaptive)
52 else if( !
transient && !mesh_adaptive )
56 else if( !
transient && mesh_adaptive )
60 else if(
transient && mesh_adaptive )
66 libmesh_error_msg(
"Unsupported combination of solver options!");
76 "unsteady-solver/transient",
77 "SolverOptions/TimeStepping/solver_type");
79 bool transient =
false;
81 if( input.have_variable(
"unsteady-solver/transient") )
83 transient = input(
"unsteady-solver/transient",
false);
85 std::string warning =
"WARNING: unsteady-solver/transient is DEPRECATED!\n";
86 warning +=
" Please use SolverOptions/TimeStepping/solver_type to specify time stepping solver.\n";
93 if( input.have_variable(
"SolverOptions/TimeStepping/solver_type") )
100 const std::string& option1,
101 const std::string& option2 )
104 if( input.have_variable(option1) && input.have_variable(option2) )
106 libmesh_error_msg(
"ERROR: Cannot specify both "+option1+
" and "+option2);
static std::string solver_type(const GetPot &input)
static bool is_transient(const GetPot &input)
#define grins_warning(message)
static const std::string unsteady_solver()
bool is_mesh_adaptive() const
Container for mesh adaptivity options.
static const std::string steady_mesh_adaptive_solver()
static const std::string unsteady_mesh_adaptive_solver()
static const std::string steady_solver()
static void dup_solver_option_check(const GetPot &input, const std::string &option1, const std::string &option2)