From 4bf09b643555d6e07d25ef319ca7955cdea15efa Mon Sep 17 00:00:00 2001 From: Dmitri Naumov <dmitri.naumov@ufz.de> Date: Fri, 25 Sep 2020 13:33:59 +0200 Subject: [PATCH] [PL/HM] Fix pressure interpolated for staggered. Withouth the if-condition the interpolated values from the pressure process (0) were overwritten by the displacement process (id = 1). --- ProcessLib/HydroMechanics/HydroMechanicsProcess.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ProcessLib/HydroMechanics/HydroMechanicsProcess.cpp b/ProcessLib/HydroMechanics/HydroMechanicsProcess.cpp index 304762ca13a..d3f93d024b4 100644 --- a/ProcessLib/HydroMechanics/HydroMechanicsProcess.cpp +++ b/ProcessLib/HydroMechanics/HydroMechanicsProcess.cpp @@ -524,6 +524,11 @@ void HydroMechanicsProcess<DisplacementDim>::computeSecondaryVariableConcrete( double const t, double const dt, GlobalVector const& x, GlobalVector const& x_dot, const int process_id) { + if (process_id != 0) + { + return; + } + DBUG("Compute the secondary variables for HydroMechanicsProcess."); ProcessLib::ProcessVariable const& pv = getProcessVariables(process_id)[0]; GlobalExecutor::executeSelectedMemberOnDereferenced( -- GitLab