Skip to content
Snippets Groups Projects
Commit b9e13f08 authored by Norihiro Watanabe's avatar Norihiro Watanabe
Browse files

always request <order> in process variable config

parent 6a946d43
No related branches found
No related tags found
No related merge requests found
......@@ -27,6 +27,8 @@ ProcessVariable::ProcessVariable(
_mesh(mesh),
//! \ogs_file_param{prj__process_variables__process_variable__components}
_n_components(config.getConfigParameter<int>("components")),
//! \ogs_file_param{prj__process_variables__process_variable__order}
_shapefunction_order(config.getConfigParameter<unsigned>("order")),
_initial_condition(findParameter<double>(
//! \ogs_file_param{prj__process_variables__process_variable__initial_condition}
config.getConfigParameter<std::string>("initial_condition"),
......@@ -34,9 +36,6 @@ ProcessVariable::ProcessVariable(
_bc_builder(new BoundaryConditionBuilder())
{
DBUG("Constructing process variable %s", _name.c_str());
//! \ogs_file_param{prj__process_variables__process_variable__order}
auto opt_shapefunction_order = config.getConfigParameterOptional<int>("order");
_shapefunction_order = (opt_shapefunction_order ? opt_shapefunction_order.get() : 1);
// Boundary conditions
//! \ogs_file_param{prj__process_variables__process_variable__boundary_conditions}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment