Skip to content

Commit

Permalink
Merge branch 'improvement' into 'master'
Browse files Browse the repository at this point in the history
Removed a local function in ProcessVariable.cpp

See merge request ogs/ogs!4733
  • Loading branch information
endJunction committed Sep 14, 2023
2 parents 1fa08f3 + c0dbe45 commit 804f61a
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions ProcessLib/ProcessVariable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,18 +94,6 @@ MeshLib::Mesh const& findMeshInConfig(

namespace ProcessLib
{
bool parseCompensateNonEquilibriumInitialResiduum(
BaseLib::ConfigTree const& config)
{
auto const compensate_non_equilibrium_initial_residuum_ptr =
//! \ogs_file_param{prj__process_variables__process_variable__compensate_non_equilibrium_initial_residuum}
config.getConfigParameterOptional<bool>(
"compensate_non_equilibrium_initial_residuum");

return (compensate_non_equilibrium_initial_residuum_ptr &&
*compensate_non_equilibrium_initial_residuum_ptr);
}

ProcessVariable::ProcessVariable(
BaseLib::ConfigTree const& config, MeshLib::Mesh& mesh,
std::vector<std::unique_ptr<MeshLib::Mesh>> const& meshes,
Expand All @@ -127,7 +115,9 @@ ProcessVariable::ProcessVariable(
config.getConfigParameter<std::string>("initial_condition"),
parameters, _n_components, &mesh)),
_compensate_non_equilibrium_initial_residuum(
parseCompensateNonEquilibriumInitialResiduum(config))
//! \ogs_file_param{prj__process_variables__process_variable__compensate_non_equilibrium_initial_residuum}
config.getConfigParameter<bool>(
"compensate_non_equilibrium_initial_residuum", false))
{
DBUG("Constructing process variable {:s}", _name);

Expand Down

0 comments on commit 804f61a

Please sign in to comment.