Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
lpsaavedra committed Sep 23, 2024
1 parent 6a066a0 commit 8699ea8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions source/solvers/fluid_dynamics_matrix_free_operators.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1198,7 +1198,8 @@ NavierStokesOperatorBase<dim, number>::do_boundary_face_integral_local(
value[d] -= this->face_target_velocity[face_index][q][d];

for (unsigned int d = 0; d < dim; ++d)
{ // Assemble (v,beta (u-u_target)) for the main penalization
{
// Assemble (v,beta (u-u_target)) for the main penalization
value_result[d] += penalty_parameter * value[d];

// Assemble ν(v,∇δu·n)
Expand Down Expand Up @@ -1230,7 +1231,7 @@ NavierStokesOperatorBase<dim, number>::do_boundary_face_integral_local(
auto value = integrator.get_value(q);

Tensor<1, dim, VectorizedArray<number>> velocity;
if (assemble_residual)
if constexpr (assemble_residual)
{
for (unsigned int d = 0; d < dim; ++d)
velocity[d] = value[d];
Expand Down

0 comments on commit 8699ea8

Please sign in to comment.