Skip to content
Snippets Groups Projects
Commit 4bf09b64 authored by Dmitri Naumov's avatar Dmitri Naumov
Browse files

[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).
parent d4d93f79
No related branches found
No related tags found
No related merge requests found
...@@ -524,6 +524,11 @@ void HydroMechanicsProcess<DisplacementDim>::computeSecondaryVariableConcrete( ...@@ -524,6 +524,11 @@ void HydroMechanicsProcess<DisplacementDim>::computeSecondaryVariableConcrete(
double const t, double const dt, GlobalVector const& x, double const t, double const dt, GlobalVector const& x,
GlobalVector const& x_dot, const int process_id) GlobalVector const& x_dot, const int process_id)
{ {
if (process_id != 0)
{
return;
}
DBUG("Compute the secondary variables for HydroMechanicsProcess."); DBUG("Compute the secondary variables for HydroMechanicsProcess.");
ProcessLib::ProcessVariable const& pv = getProcessVariables(process_id)[0]; ProcessLib::ProcessVariable const& pv = getProcessVariables(process_id)[0];
GlobalExecutor::executeSelectedMemberOnDereferenced( GlobalExecutor::executeSelectedMemberOnDereferenced(
......
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