Skip to content

Commit

Permalink
[HM] Added the missed .noalias()
Browse files Browse the repository at this point in the history
  • Loading branch information
wenqing committed Feb 28, 2024
1 parent d926573 commit a6b714e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ProcessLib/HydroMechanics/HydroMechanicsFEM-impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -884,8 +884,8 @@ void HydroMechanicsLocalAssembler<ShapeFunctionDisplacement,
.template value<double>(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;
}
}
}
Expand Down

0 comments on commit a6b714e

Please sign in to comment.