25 #include "libmesh/getpot.h"
36 std::string warning =
"WARNING: Use of this constructor is DEPRECATED.\n";
37 warning +=
" Please update to use constructor with input material name.\n";
42 "Materials/Conductivity/k",
45 std::string conductivity_function = input(
"Materials/Conductivity/k",std::string(
"0"));
49 libmesh_error_msg(
"ERROR: Detected '0' function for ParsedConductivity!");
58 "Materials/"+material+
"/ThermalConductivity/value",
59 "Materials/Conductivity/k");
61 std::string conductivity_function;
64 if( input.have_variable(
"Materials/"+material+
"/ThermalConductivity/value") )
67 "Materials/"+material+
"/ThermalConductivity/value",
70 conductivity_function = input(
"Materials/"+material+
"/ThermalConductivity/value",std::string(
"0"));
73 else if( input.have_variable(
"Materials/Conductivity/k") )
76 "ThermalConductivity/value" );
79 "Materials/Conductivity/k",
82 conductivity_function = input(
"Materials/Conductivity/k",std::string(
"0"));
87 libmesh_error_msg(
"Error: Could not find either Materials/"+material+
"/ThermalConductivity/value or Materials/Conductivity/k");
92 libmesh_error_msg(
"ERROR: Detected '0' function for ParsedConductivity!");
libMesh::ParsedFunction< libMesh::Number > _func
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.
#define grins_warning(message)
bool check_func_nonzero(const std::string &function) const
Returns true if function string is nonzero.
ParameterUser base class. Utility methods for subclasses.
Base class for material properties based on ParsedFunction.
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.