Skip to content

Commit

Permalink
Fix bug introduced in pressure correction norms
Browse files Browse the repository at this point in the history
  • Loading branch information
blaisb committed Aug 27, 2024
1 parent 65020c6 commit 55d3bbc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions source/solvers/navier_stokes_base.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2692,8 +2692,7 @@ NavierStokesBase<dim, VectorType, DofsType>::output_newton_update_norms(
local_sum = 0.0;
local_max = std::numeric_limits<double>::lowest();

for (const auto &j : index_set_pressure[0])

for (const auto &j : index_set_pressure[dim])
{
double dof_newton_update = newton_update[j];
local_sum += dof_newton_update * dof_newton_update;
Expand Down

0 comments on commit 55d3bbc

Please sign in to comment.