32 #include "libmesh/getpot.h"
33 #include "libmesh/fem_system.h"
39 const std::string& subsection,
40 std::vector<std::string>& var_names,
41 const std::vector<std::string>& default_names )
43 libmesh_assert_equal_to( var_names.size(), default_names.size() );
45 unsigned int n_names = default_names.size();
47 for(
unsigned int n = 0; n < n_names; n++ )
53 if( input.have_section(
"Physics/VariableNames") &&
55 libmesh_error_msg(
"ERROR: Cannot have both Physics/VariableNames and "
60 const std::string& subsection )
const
64 bool is_old_input_style =
false;
66 if( input.have_section(
"Physics/VariableNames") )
68 is_old_input_style =
true;
70 std::string warning =
"WARNING: Specifying variable names with Physics/VariableNames is DEPRECATED!\n";
75 return is_old_input_style;
static std::string variables_section()
Helper function to encapsualte the overall [Variables] section name.
#define grins_warning(message)
void parse_names_from_input(const GetPot &input, const std::string &subsection, std::vector< std::string > &var_names, const std::vector< std::string > &default_names)
Method to parse variable names from input.
static std::string varnames_input_name(const std::string &subsection)
Helper function to encapsulate the names variable in the input file.
bool check_dep_name_input(const GetPot &input, const std::string &new_subsection) const
Check for deprecated variable name input style.
void duplicate_name_section_check(const GetPot &input) const
Check for old name style and new name style. If both present, error.