34 static std::map<std::string,SharedPtr<FEVariablesBase> > _var_map;
42 const std::map<std::string,SharedPtr<FEVariablesBase> >& map =
var_map();
44 std::stringstream error_msg;
45 error_msg <<
"ERROR: Could not find Variable "+var_name+
" in the VariableWarehouse!"
47 <<
" Variables currently the VariableWarehouse are: "
48 << (map.begin())->first << std::endl;
50 std::map<std::string,SharedPtr<FEVariablesBase> >::const_iterator it = map.begin();
52 for( ; it != map.end(); ++it )
53 error_msg << std::string(54,
' ') << it->first << std::endl;
55 libmesh_error_msg(error_msg.str());
58 SharedPtr<FEVariablesBase> var_ptr =
var_map()[var_name];
61 libmesh_error_msg(
"ERROR: Variable "+var_name+
" is an invalid pointer!");
static SharedPtr< FEVariablesBase > get_variable_ptr(const std::string &var_name)
static std::map< std::string, SharedPtr< FEVariablesBase > > & var_map()
static bool is_registered(const std::string &var_name)
Check if variable is registered.