Skip to content

Commit 8cfeee9

Browse files
committed
Include NVTX range in conditionals
1 parent 2b7d551 commit 8cfeee9

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

src/simulation/m_rhs.fpp

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -903,17 +903,19 @@ contains
903903
call nvtxEndRange
904904

905905
! Add bubles source term
906-
call nvtxStartRange("RHS-BUBBLES-SRC")
907-
if (bubbles .and. (.not. adap_dt) .and. (.not. qbmm)) call s_compute_bubble_source( &
908-
q_cons_qp%vf(1:sys_size), &
909-
q_prim_qp%vf(1:sys_size), &
910-
t_step, &
911-
rhs_vf)
912-
call nvtxEndRange
906+
if (bubbles .and. (.not. adap_dt) .and. (.not. qbmm)) then
907+
call nvtxStartRange("RHS-BUBBLES-SRC")
908+
call s_compute_bubble_source( &
909+
q_cons_qp%vf(1:sys_size), &
910+
q_prim_qp%vf(1:sys_size), &
911+
t_step, &
912+
rhs_vf)
913+
call nvtxEndRange
914+
end if
913915

914916
if (chemistry) then
915917
if (chem_params%reactions) then
916-
call nvtxStartRange("RHS_Chem_Reactions")
918+
call nvtxStartRange("RHS-CHEM-REACTIONS")
917919
call s_compute_chemistry_reaction_flux(rhs_vf, q_cons_qp%vf, q_prim_qp%vf)
918920
call nvtxEndRange
919921
end if

0 commit comments

Comments
 (0)