@@ -622,7 +622,7 @@ contains
622622 real (kind (0d0 )) :: t_start, t_finish
623623 integer :: i, j, k, l, id !< Generic loop iterators
624624
625- call nvtxStartRange(" Compute_RHS " )
625+ call nvtxStartRange(" COMPUTE-RHS " )
626626
627627 call cpu_time(t_start)
628628 ! Association/ Population of Working Variables ======================
@@ -669,7 +669,7 @@ contains
669669 gm_alpha_qp%vf)
670670 call nvtxEndRange
671671
672- call nvtxStartRange(" RHS-MPI " )
672+ call nvtxStartRange(" RHS-COMMUNICATION " )
673673 call s_populate_variables_buffers(q_prim_qp%vf, pb, mv)
674674 call nvtxEndRange
675675
@@ -683,21 +683,25 @@ contains
683683
684684 if (qbmm) call s_mom_inv(q_cons_qp%vf, q_prim_qp%vf, mom_sp, mom_3d, pb, rhs_pb, mv, rhs_mv, idwbuff(1 ), idwbuff(2 ), idwbuff(3 ), nbub)
685685
686- call nvtxStartRange(" Viscous" )
687- if (viscous) call s_get_viscous(qL_rsx_vf, qL_rsy_vf, qL_rsz_vf, &
688- dqL_prim_dx_n, dqL_prim_dy_n, dqL_prim_dz_n, &
689- qL_prim, &
690- qR_rsx_vf, qR_rsy_vf, qR_rsz_vf, &
691- dqR_prim_dx_n, dqR_prim_dy_n, dqR_prim_dz_n, &
692- qR_prim, &
693- q_prim_qp, &
694- dq_prim_dx_qp, dq_prim_dy_qp, dq_prim_dz_qp, &
695- idwbuff(1 ), idwbuff(2 ), idwbuff(3 ))
696- call nvtxEndRange
686+ if (viscous) then
687+ call nvtxStartRange(" RHS-VISCOUS" )
688+ call s_get_viscous(qL_rsx_vf, qL_rsy_vf, qL_rsz_vf, &
689+ dqL_prim_dx_n, dqL_prim_dy_n, dqL_prim_dz_n, &
690+ qL_prim, &
691+ qR_rsx_vf, qR_rsy_vf, qR_rsz_vf, &
692+ dqR_prim_dx_n, dqR_prim_dy_n, dqR_prim_dz_n, &
693+ qR_prim, &
694+ q_prim_qp, &
695+ dq_prim_dx_qp, dq_prim_dy_qp, dq_prim_dz_qp, &
696+ idwbuff(1 ), idwbuff(2 ), idwbuff(3 ))
697+ call nvtxEndRange
698+ end if
697699
698- call nvtxStartRange(" Surface_Tension" )
699- if (surface_tension) call s_get_capilary(q_prim_qp%vf)
700- call nvtxEndRange
700+ if (surface_tension) then
701+ call nvtxStartRange(" RHS-SURFACE-TENSION" )
702+ call s_get_capilary(q_prim_qp%vf)
703+ call nvtxEndRange
704+ end if
701705 ! Dimensional Splitting Loop =======================================
702706
703707 do id = 1 , num_dims
@@ -777,7 +781,7 @@ contains
777781 irx%end = m; iry%end = n; irz%end = p
778782 ! ===============================================================
779783
780- call nvtxStartRange(" RHS_riemann_solver " )
784+ call nvtxStartRange(" RHS-RIEMANN-SOLVER " )
781785
782786 ! Computing Riemann Solver Flux and Source Flux =================
783787
@@ -801,7 +805,7 @@ contains
801805 ! Additional physics and source terms ==============================
802806
803807 ! RHS addition for advection source
804- call nvtxStartRange(" RHS_advection_source " )
808+ call nvtxStartRange(" RHS-ADVECTION-SRC " )
805809 call s_compute_advection_source_term(id, &
806810 rhs_vf, &
807811 q_cons_qp, &
@@ -810,50 +814,54 @@ contains
810814 call nvtxEndRange
811815
812816 ! RHS additions for hypoelasticity
813- call nvtxStartRange(" RHS_Hypoelasticity " )
817+ call nvtxStartRange(" RHS-HYPOELASTICITY " )
814818 if (hypoelasticity) call s_compute_hypoelastic_rhs(id, &
815819 q_prim_qp%vf, &
816820 rhs_vf)
817821 call nvtxEndRange
818822
819823 ! RHS additions for viscosity
820- call nvtxStartRange(" RHS_add_phys" )
821824 if (viscous .or. surface_tension) then
825+ call nvtxStartRange(" RHS-ADD-PHYSICS" )
822826 call s_compute_additional_physics_rhs(id, &
823827 q_prim_qp%vf, &
824828 rhs_vf, &
825829 flux_src_n(id)%vf, &
826830 dq_prim_dx_qp(1 )%vf, &
827831 dq_prim_dy_qp(1 )%vf, &
828832 dq_prim_dz_qp(1 )%vf)
833+ call nvtxEndRange
829834 end if
830- call nvtxEndRange
831835
832836 ! RHS additions for sub- grid bubbles
833- call nvtxStartRange(" RHS_bubbles" )
834- if (bubbles) call s_compute_bubbles_rhs(id, &
835- q_prim_qp%vf)
836- call nvtxEndRange
837+ if (bubbles) then
838+ call nvtxStartRange(" RHS-BUBBLES-COMPUTE" )
839+ call s_compute_bubbles_rhs(id, q_prim_qp%vf)
840+ call nvtxEndRange
841+ end if
837842
838843 ! RHS additions for qbmm bubbles
839- call nvtxStartRange(" RHS_qbmm" )
840- if (qbmm) call s_compute_qbmm_rhs(id, &
841- q_cons_qp%vf, &
842- q_prim_qp%vf, &
843- rhs_vf, &
844- flux_n(id)%vf, &
845- pb, &
846- rhs_pb, &
847- mv, &
848- rhs_mv)
849- call nvtxEndRange
844+
845+ if (qbmm) then
846+ call nvtxStartRange(" RHS-QBMM" )
847+ call s_compute_qbmm_rhs(id, &
848+ q_cons_qp%vf, &
849+ q_prim_qp%vf, &
850+ rhs_vf, &
851+ flux_n(id)%vf, &
852+ pb, &
853+ rhs_pb, &
854+ mv, &
855+ rhs_mv)
856+ call nvtxEndRange
857+ end if
850858 ! END: Additional physics and source terms =========================
851859
852860 end do
853861 ! END: Dimensional Splitting Loop =================================
854862
855863 if (chemistry) then
856- call nvtxStartRange(" RHS_Chem_Advection " )
864+ call nvtxStartRange(" RHS-CHEM-ADVECTION " )
857865 call s_compute_chemistry_advection_flux(flux_n, rhs_vf)
858866 call nvtxEndRange
859867 end if
@@ -875,25 +883,29 @@ contains
875883
876884 ! Additional Physics and Source Temrs ==================================
877885 ! Additions for acoustic_source
878- call nvtxStartRange(" RHS_acoustic_src" )
879- if (acoustic_source) call s_acoustic_src_calculations(q_cons_qp%vf(1 :sys_size), &
880- q_prim_qp%vf(1 :sys_size), &
881- t_step, &
882- rhs_vf)
883- call nvtxEndRange
886+ if (acoustic_source) then
887+ call nvtxStartRange(" RHS-ACOUSTIC-SRC" )
888+ call s_acoustic_src_calculations(q_cons_qp%vf(1 :sys_size), &
889+ q_prim_qp%vf(1 :sys_size), &
890+ t_step, &
891+ rhs_vf)
892+ call nvtxEndRange
893+ end if
884894
885895 ! Add bubles source term
886- call nvtxStartRange(" RHS_bubbles" )
887- if (bubbles .and. (.not. adap_dt) .and. (.not. qbmm)) call s_compute_bubble_source( &
888- q_cons_qp%vf(1 :sys_size), &
889- q_prim_qp%vf(1 :sys_size), &
890- t_step, &
891- rhs_vf)
892- call nvtxEndRange
896+ if (bubbles .and. (.not. adap_dt) .and. (.not. qbmm)) then
897+ call nvtxStartRange(" RHS-BUBBLES-SRC" )
898+ call s_compute_bubble_source( &
899+ q_cons_qp%vf(1 :sys_size), &
900+ q_prim_qp%vf(1 :sys_size), &
901+ t_step, &
902+ rhs_vf)
903+ call nvtxEndRange
904+ end if
893905
894906 if (chemistry) then
895907 if (chem_params%reactions) then
896- call nvtxStartRange(" RHS_Chem_Reactions " )
908+ call nvtxStartRange(" RHS-CHEM-REACTIONS " )
897909 call s_compute_chemistry_reaction_flux(rhs_vf, q_cons_qp%vf, q_prim_qp%vf)
898910 call nvtxEndRange
899911 end if
0 commit comments