34 #include "libmesh/getpot.h"
45 std::string warning =
"WARNING: Use of this constructor is DEPRECATED.\n";
46 warning +=
" Please update to use constructor with input material name.\n";
50 if( !input.have_variable(
"Materials/SpecificHeat/cp") )
52 std::cerr <<
"Error: Must specify cp value for constant specific heat model!" << std::endl;
57 (
_cp, input,
"Materials/SpecificHeat/cp",
_cp);
61 const std::string& material )
67 "Materials/"+material+
"/SpecificHeat/value",
68 "Materials/SpecificHeat/cp");
71 if( input.have_variable(
"Materials/"+material+
"/SpecificHeat/value") )
74 (
_cp, input,
"Materials/"+material+
"/SpecificHeat/value",
_cp);
77 else if( input.have_variable(
"Materials/SpecificHeat/cp") )
80 "SpecificHeat/value" );
83 (
_cp, input,
"Materials/SpecificHeat/cp",
_cp);
87 libmesh_error_msg(
"ERROR: Could not find valid input for ConstantSpecificHeat! Please set Materials/"+material+
"/SpecificHeat/value");
virtual void set_parameter(libMesh::Number ¶m_variable, const GetPot &input, const std::string ¶m_name, libMesh::Number param_default)
Each subclass can simultaneously read a parameter value from.
virtual ~ConstantSpecificHeat()
#define grins_warning(message)
ParameterUser base class. Utility methods for subclasses.
static void dep_input_warning(const std::string &old_option, const std::string &property)
Helper function for parsing/maintaing backward compatibility.
static void duplicate_input_test(const GetPot &input, const std::string &option1, const std::string &option2)
Helper function for parsing/maintaing backward compatibility.