34 #include "libmesh/getpot.h"
43 if( input.have_variable(
"SolverOptions/solver_type") )
44 solver_type = input(
"SolverOptions/solver_type",
"DIE!");
55 if(
transient && !mesh_adaptive)
59 else if( !
transient && !mesh_adaptive )
63 else if( !
transient && mesh_adaptive )
67 else if(
transient && mesh_adaptive )
73 libmesh_error_msg(
"Unsupported combination of solver options!");
84 "unsteady-solver/transient",
85 "SolverOptions/TimeStepping/solver_type");
87 bool transient =
false;
89 if( input.have_variable(
"unsteady-solver/transient") )
91 transient = input(
"unsteady-solver/transient",
false);
93 std::string warning =
"WARNING: unsteady-solver/transient is DEPRECATED!\n";
94 warning +=
" Please use SolverOptions/TimeStepping/solver_type to specify time stepping solver.\n";
101 if( input.have_variable(
"SolverOptions/TimeStepping/solver_type") )
108 const std::string& option1,
109 const std::string& option2 )
112 if( input.have_variable(option1) && input.have_variable(option2) )
114 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)