diff --git a/ProcessLib/HydroMechanics/HydroMechanicsFEM-impl.h b/ProcessLib/HydroMechanics/HydroMechanicsFEM-impl.h index 6960e1ccde2..46a681961fe 100644 --- a/ProcessLib/HydroMechanics/HydroMechanicsFEM-impl.h +++ b/ProcessLib/HydroMechanics/HydroMechanicsFEM-impl.h @@ -884,8 +884,8 @@ void HydroMechanicsLocalAssembler(vars, x_position, t, dt); auto& sigma_eff = _ip_data[ip].sigma_eff; - sigma_eff += alpha_b * N_p.dot(p) * identity2; - _ip_data[ip].sigma_eff_prev = sigma_eff; + sigma_eff.noalias() += alpha_b * N_p.dot(p) * identity2; + _ip_data[ip].sigma_eff_prev.noalias() = sigma_eff; } } }