@@ -700,8 +700,21 @@ contains
700700 real (kind (0d0 )), intent (inout ) :: time_avg
701701
702702 real (kind (0d0 )), dimension (0 :m, 0 :n, 0 :p) :: nbub
703- real (kind (0d0 )) :: t_start, t_finish
704- integer :: i, j, k, l, id !< Generic loop iterators
703+ integer :: ndirs
704+
705+ real (kind (0d0 )) :: sound
706+ real (kind (0d0 )) :: start, finish
707+ real (kind (0d0 )) :: s2, const_sos, s1
708+
709+ integer :: i, c, j, k, l, q, ii, id !< Generic loop iterators
710+ integer :: term_index
711+
712+ call nvtxStartRange(" RHS" )
713+
714+ ! Configuring Coordinate Direction Indexes =========================
715+ ix%beg = - buff_size; iy%beg = 0 ; iz%beg = 0
716+
717+ if (n > 0 ) iy%beg = - buff_size; if (p > 0 ) iz%beg = - buff_size
705718
706719 call nvtxStartRange(" COMPUTE-RHS" )
707720
@@ -750,7 +763,7 @@ contains
750763 gm_alpha_qp%vf)
751764 call nvtxEndRange
752765
753- call nvtxStartRange(" RHS-MPI+BUFPACK " )
766+ call nvtxStartRange(" RHS-COMM " )
754767 call s_populate_variables_buffers(q_prim_qp%vf, pb, mv)
755768 call nvtxEndRange
756769
@@ -776,9 +789,11 @@ contains
776789 idwbuff(1 ), idwbuff(2 ), idwbuff(3 ))
777790 call nvtxEndRange
778791
779- call nvtxStartRange(" RHS-SURFACE-TENSION" )
780- if (surface_tension) call s_get_capilary(q_prim_qp%vf)
781- call nvtxEndRange
792+ if (surface_tension)
793+ call nvtxStartRange(" RHS-SURFACE-TENSION" )
794+ call s_get_capilary(q_prim_qp%vf)
795+ call nvtxEndRange
796+ end if
782797 ! Dimensional Splitting Loop =======================================
783798
784799 do id = 1 , num_dims
@@ -857,7 +872,6 @@ contains
857872 end if
858873 irx%end = m; iry%end = n; irz%end = p
859874 ! ===============================================================
860-
861875 call nvtxStartRange(" RHS-RIEMANN-SOLVER" )
862876
863877 ! Computing Riemann Solver Flux and Source Flux =================
0 commit comments