Skip to content

Commit 967400a

Browse files
committed
Merge branch 'mpi_time' of https://github.com/max-Hawkins/MFC into mpi_time
Conflicts: src/simulation/m_data_output.fpp src/simulation/m_rhs.fpp
2 parents aa7936b + b662506 commit 967400a

File tree

2 files changed

+34
-7
lines changed

2 files changed

+34
-7
lines changed

src/simulation/m_data_output.fpp

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,19 @@ contains
236236
real(kind(0d0)), dimension(2) :: Re !< Cell-avg. Reynolds numbers
237237
integer :: j, k, l
238238

239+
! ICFL, VCFL, CCFL and Rc stability criteria extrema for the current
240+
! time-step and located on both the local (loc) and the global (glb)
241+
! computational domains
242+
243+
real(kind(0d0)) :: blkmod1, blkmod2 !<
244+
!! Fluid bulk modulus for Woods mixture sound speed
245+
246+
integer :: i, j, k, l, q !< Generic loop iterators
247+
248+
integer :: Nfq
249+
real(kind(0d0)) :: fltr_dtheta !<
250+
!! Modified dtheta accounting for Fourier filtering in azimuthal direction.
251+
239252
call nvtxStartRange("TSTEP-RUNTIME-INFO")
240253
! Computing Stability Criteria at Current Time-step ================
241254
call nvtxStartRange("TSTEP-RUNTIME-INFO-COMPUTE-LOCAL")

src/simulation/m_rhs.fpp

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)