From 485e692584e0983945210db2ea2a48b5b1ae9c70 Mon Sep 17 00:00:00 2001 From: tcclevenger Date: Thu, 5 Dec 2024 12:33:21 -0500 Subject: [PATCH] Remove unnecessary if-block if (iop_nudge_tq or iop_nudge_uv) { ... if (iop_nudge_tq or iop_nudge_uv) { ... } } --- .../physics/iop_forcing/eamxx_iop_forcing_process_interface.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/components/eamxx/src/physics/iop_forcing/eamxx_iop_forcing_process_interface.cpp b/components/eamxx/src/physics/iop_forcing/eamxx_iop_forcing_process_interface.cpp index 9aac3fdf03ac..ee662cd81b86 100644 --- a/components/eamxx/src/physics/iop_forcing/eamxx_iop_forcing_process_interface.cpp +++ b/components/eamxx/src/physics/iop_forcing/eamxx_iop_forcing_process_interface.cpp @@ -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 @@ -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});