35 #include "libmesh/auto_ptr.h"
36 #include "libmesh/getpot.h"
37 #include "libmesh/parameter_multiaccessor.h"
43 (
const GetPot& input,
44 const std::string & parameters_varname,
48 const unsigned int n_parameters =
49 input.vector_variable_size(parameters_varname);
50 libmesh_assert(n_parameters);
52 this->parameter_name_list.resize(n_parameters);
53 this->parameter_vector.clear();
54 for (
unsigned int i=0; i != n_parameters; ++i)
56 std::string param_name =
57 input(parameters_varname, std::string(), i);
59 this->parameter_name_list[i] = param_name;
71 if (next_param->size() == 0)
73 std::cout <<
"No parameters named " << param_name <<
74 " found in active Physics or QoIs" << std::endl;
78 this->parameter_vector.push_back
79 (libMesh::UniquePtr<libMesh::ParameterAccessor<libMesh::Number> >
void register_parameter(const std::string ¶m_name, libMesh::ParameterMultiAccessor< libMesh::Number > ¶m_pointer) const
Each QoI will register its copy(s) of an independent variable.
void register_parameter(const std::string ¶m_name, libMesh::ParameterMultiAccessor< libMesh::Number > ¶m_pointer)
Each Physics will register its copy(s) of an independent variable.
Interface with libMesh for solving Multiphysics problems.
virtual void initialize(const GetPot &input, const std::string ¶meters_varname, GRINS::MultiphysicsSystem &system, GRINS::CompositeQoI *qoi)