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

make <order> optional. default is 1

parent 5b67d2d0
No related branches found
No related tags found
No related merge requests found
...@@ -27,8 +27,6 @@ ProcessVariable::ProcessVariable( ...@@ -27,8 +27,6 @@ ProcessVariable::ProcessVariable(
_mesh(mesh), _mesh(mesh),
//! \ogs_file_param{prj__process_variables__process_variable__components} //! \ogs_file_param{prj__process_variables__process_variable__components}
_n_components(config.getConfigParameter<int>("components")), _n_components(config.getConfigParameter<int>("components")),
//! \ogs_file_param{prj__process_variables__process_variable__order}
_shapefunction_order(config.getConfigParameter<int>("order")),
_initial_condition(findParameter<double>( _initial_condition(findParameter<double>(
//! \ogs_file_param{prj__process_variables__process_variable__initial_condition} //! \ogs_file_param{prj__process_variables__process_variable__initial_condition}
config.getConfigParameter<std::string>("initial_condition"), config.getConfigParameter<std::string>("initial_condition"),
...@@ -36,6 +34,9 @@ ProcessVariable::ProcessVariable( ...@@ -36,6 +34,9 @@ ProcessVariable::ProcessVariable(
_bc_builder(new BoundaryConditionBuilder()) _bc_builder(new BoundaryConditionBuilder())
{ {
DBUG("Constructing process variable %s", _name.c_str()); 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 // Boundary conditions
//! \ogs_file_param{prj__process_variables__process_variable__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