Skip to content

Commit

Permalink
Remove unnecessary if-block
Browse files Browse the repository at this point in the history
if (iop_nudge_tq or iop_nudge_uv) {
  ...
  if (iop_nudge_tq or iop_nudge_uv) {
    ...
  }
}
  • Loading branch information
tcclevenger committed Dec 5, 2024
1 parent 3bf3216 commit 485e692
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,6 @@ void IOPForcing::run_impl (const double dt)
});
team.team_barrier();

if (iop_nudge_tq or iop_nudge_uv) {
Kokkos::parallel_for(Kokkos::TeamVectorRange(team, nlev_packs), [&](const int& k) {
if (iop_nudge_tq) {
// Restrict nudging of T and qv to certain levels if requested by user
Expand All @@ -535,7 +534,6 @@ void IOPForcing::run_impl (const double dt)
v_i(k).update(v_mean(k) - v_iop(k), -dt/rtau, 1.0);
}
});
}

// Release WS views
ws.release_many_contiguous<1>({&ref_p_mid});
Expand Down

0 comments on commit 485e692

Please sign in to comment.