Commit fd4323ed authored by Tom Fischer's avatar Tom Fischer Committed by Dmitry Yu. Naumov
Browse files

[PL/BC/DBCWithinTimeInterval] Fix ConfigTree warning in PETSc case.

parent 47b64255
......@@ -113,6 +113,10 @@ createDirichletBoundaryConditionWithinTimeInterval(
auto& param = ParameterLib::findParameter<double>(param_name, parameters, 1,
&bc_mesh);
//! \ogs_file_param{prj__process_variables__process_variable__boundary_conditions__boundary_condition__DirichletWithinTimeInterval__time_interval}
config.peekConfigParameter<std::string>("time_interval");
auto time_interval = BaseLib::createTimeInterval(config);
// In case of partitioned mesh the boundary could be empty, i.e. there is no
// boundary condition.
#ifdef USE_PETSC
......@@ -127,11 +131,8 @@ createDirichletBoundaryConditionWithinTimeInterval(
}
#endif // USE_PETSC
//! \ogs_file_param{prj__process_variables__process_variable__boundary_conditions__boundary_condition__DirichletWithinTimeInterval__time_interval}
config.peekConfigParameter<std::string>("time_interval");
return std::make_unique<DirichletBoundaryConditionWithinTimeInterval>(
BaseLib::createTimeInterval(config), param, bc_mesh, dof_table_bulk,
std::move(time_interval), param, bc_mesh, dof_table_bulk,
variable_id, component_id);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment