35 integer,
intent(in) :: t_step
49 integer :: lo(3), hi(3)
65 character(len=*),
intent(in) :: t_step_dir
66 character(len=1),
intent(in) :: direction
67 real(wp),
dimension(-1:),
intent(out) :: cb_array
68 real(wp),
dimension(0:),
intent(out) :: d_array
69 real(wp),
dimension(0:),
intent(out) :: cc_array
70 integer,
intent(in) :: size_dim
71 character(LEN=len_trim(t_step_dir) + 10) :: file_loc
74 file_loc = trim(t_step_dir) //
'/' // direction //
'_cb.dat'
75 inquire (file=trim(file_loc), exist=file_check)
78 open (1, file=trim(file_loc), form=
'unformatted', status=
'old', action=
'read')
79 read (1) cb_array(-1:size_dim)
82 call s_mpi_abort(
'File ' // direction //
'_cb.dat is missing in ' // trim(t_step_dir) //
'. Exiting.')
85 d_array(0:size_dim) = cb_array(0:size_dim) - cb_array(-1:size_dim - 1)
86 cc_array(0:size_dim) = cb_array(-1:size_dim - 1) + d_array(0:size_dim)/2._wp
94 integer,
intent(out) :: data_size
95 integer(KIND=MPI_OFFSET_KIND),
intent(out) :: m_mok, n_mok, p_mok
96 integer(KIND=MPI_OFFSET_KIND),
intent(out) :: wp_mok, mok, str_mok, nvars_mok
104 data_size = (m + 1)*(n + 1)*(p + 1)
106 m_mok = int(
m_glb + 1, mpi_offset_kind)
107 n_mok = int(
n_glb + 1, mpi_offset_kind)
108 p_mok = int(
p_glb + 1, mpi_offset_kind)
109 wp_mok = int(storage_size(0._stp)/8, mpi_offset_kind)
110 mok = int(1._wp, mpi_offset_kind)
111 str_mok = int(name_len, mpi_offset_kind)
112 nvars_mok = int(sys_size, mpi_offset_kind)
122 integer,
intent(in) :: t_step
124 character(LEN=path_len + 2*name_len) :: floc
125 character(LEN=name_len) :: fnum
128 if (parallel_io)
then
129 if (file_per_process)
return
130 write (fnum,
'(I0,A)') t_step,
'.dat'
131 floc = trim(case_dir) //
'/restart_data' // trim(mpiiofs) // trim(fnum)
132 inquire (file=trim(floc), exist=present_)
135 write (floc,
'(A,I0,A,I0,A)') trim(case_dir) //
'/p_all/p',
proc_rank,
'/', t_step,
'/.'
144 character(len=*),
intent(in) :: file_loc_base
145 integer,
intent(in),
optional :: t_step
146 character(LEN=path_len + 2*name_len) :: file_loc
147 logical :: file_exist
148 integer :: ifile, ierr, data_size
149 character(len=10) :: t_step_string
152 integer,
dimension(MPI_STATUS_SIZE) :: status
153 integer(KIND=MPI_OFFSET_KIND) :: disp
154 integer(KIND=MPI_OFFSET_KIND) :: m_mok, n_mok, p_mok, mok, wp_mok, var_mok
155 integer :: save_index
160 if (parallel_io .and. file_per_process)
then
162 write (file_loc,
'(A,I0,A,i7.7,A)')
'ib_markers_', t_step,
'_',
proc_rank,
'.dat'
163 file_loc = trim(case_dir) //
'/restart_data/lustre_' // trim(t_step_string) //
'/' // trim(file_loc)
164 else if (parallel_io)
then
165 write (file_loc,
'(A)') trim(file_loc_base) //
'ib.dat'
167 write (file_loc,
'(A)') trim(file_loc_base) //
'/ib_data.dat'
169 inquire (file=trim(file_loc), exist=file_exist)
172 if (parallel_io .and. file_per_process)
then
174 call mpi_file_open(mpi_comm_self, file_loc, mpi_mode_rdonly, mpi_info_int, ifile, ierr)
177 data_size = (m + 1)*(n + 1)*(p + 1)
179 call mpi_file_read(ifile,
mpi_io_ib_data%var%sf, data_size, mpi_integer, status, ierr)
181 call mpi_file_close(ifile, ierr)
183 else if (parallel_io)
then
185 call mpi_file_open(mpi_comm_world, file_loc, mpi_mode_rdonly, mpi_info_int, ifile, ierr)
188 m_mok = int(
m_glb + 1, mpi_offset_kind)
189 n_mok = int(
n_glb + 1, mpi_offset_kind)
190 p_mok = int(
p_glb + 1, mpi_offset_kind)
191 mok = int(1._wp, mpi_offset_kind)
192 wp_mok = int(storage_size(0._stp)/8, mpi_offset_kind)
195 data_size = (m + 1)*(n + 1)*(p + 1)
196 var_mok = int(sys_size + 1, mpi_offset_kind)
197 if (t_step == 0)
then
200 disp = m_mok*max(mok, n_mok)*max(mok, p_mok)*wp_mok*(var_mok - 1 + int(save_index, mpi_offset_kind))
203 call mpi_file_set_view(ifile, disp, mpi_integer,
mpi_io_ib_data%view,
'native', mpi_info_int, ierr)
204 call mpi_file_read(ifile,
mpi_io_ib_data%var%sf, data_size, mpi_integer, status, ierr)
206 call mpi_file_close(ifile, ierr)
209 open (2, file=trim(file_loc), form=
'unformatted', action=
'read', status=
'old')
214 call s_mpi_abort(
'File ' // trim(file_loc) //
' is missing. Exiting.')
222 integer,
intent(in) :: local_start_idx, end_x, end_y, end_z
226 allocate (
q_cons_vf(i)%sf(local_start_idx:end_x,local_start_idx:end_y,local_start_idx:end_z))
227 allocate (
q_prim_vf(i)%sf(local_start_idx:end_x,local_start_idx:end_y,local_start_idx:end_z))
231 allocate (
ib_markers%sf(local_start_idx:end_x,local_start_idx:end_y,local_start_idx:end_z))
234 if (chemistry .or. heat_conduction)
then
235 allocate (
q_t_sf%sf(local_start_idx:end_x,local_start_idx:end_y,local_start_idx:end_z))
245 integer,
intent(in) :: t_step
246 character(LEN=len_trim(case_dir) + 2*name_len) :: t_step_dir
247 character(LEN=len_trim(case_dir) + 3*name_len) :: file_loc
248 character(len=int(floor(log10(real(sys_size, wp)))) + 1) :: file_num
250 logical :: file_check
253 write (t_step_dir,
'(A,I0,A,I0)')
'/p_all/p',
proc_rank,
'/', t_step
254 t_step_dir = trim(case_dir) // trim(t_step_dir)
256 file_loc = trim(t_step_dir) //
'/.'
259 if (dir_check .neqv. .true.)
then
260 call s_mpi_abort(
'Time-step folder ' // trim(t_step_dir) //
' is missing. Exiting.')
284 write (file_num,
'(I0)') i
285 file_loc = trim(t_step_dir) //
'/q_cons_vf' // trim(file_num) //
'.dat'
286 inquire (file=trim(file_loc), exist=file_check)
289 open (1, file=trim(file_loc), form=
'unformatted', status=
'old', action=
'read')
293 call s_mpi_abort(
'File q_cons_vf' // trim(file_num) //
'.dat is missing in ' // trim(t_step_dir) //
'. Exiting.')
305 integer,
intent(in) :: t_step
308 real(wp),
allocatable,
dimension(:) :: x_cb_glb, y_cb_glb, z_cb_glb
309 integer :: ifile, ierr, data_size, filetype, stride
310 integer,
dimension(MPI_STATUS_SIZE) :: status
311 integer(KIND=MPI_OFFSET_KIND) :: disp
312 integer(KIND=MPI_OFFSET_KIND) :: m_mok, n_mok, p_mok
313 integer(KIND=MPI_OFFSET_KIND) :: wp_mok, var_mok, str_mok
314 integer(KIND=MPI_OFFSET_KIND) :: nvars_mok
315 integer(KIND=MPI_OFFSET_KIND) :: mok
316 integer(kind=MPI_OFFSET_KIND) :: offset
317 character(LEN=path_len + 2*name_len) :: file_loc
318 logical :: file_exist
319 integer(kind=8) :: file_bytes, bytes_needed
320 character(len=10) :: case_m_str, file_m_str
321 character(len=10) :: t_step_string
324 allocate (x_cb_glb(-1:
m_glb))
325 allocate (y_cb_glb(-1:
n_glb))
326 allocate (z_cb_glb(-1:
p_glb))
328 if (down_sample)
then
334 file_loc = trim(case_dir) //
'/restart_data' // trim(mpiiofs) //
'x_cb.dat'
335 inquire (file=trim(file_loc), exist=file_exist, size=file_bytes)
344 bytes_needed = (int(stride, 8)*int(
m_glb + 1, 8) + 1_8)*int(storage_size(0._wp)/8, 8)
345 if (file_bytes < bytes_needed .or. (.not. down_sample .and. file_bytes /= bytes_needed))
then
347 call s_int_to_str(int(file_bytes/int(storage_size(0._wp)/8, 8)) - 2, file_m_str)
348 call s_mpi_abort(
'Restart grid mismatch: this case has m = ' // trim(case_m_str) //
' but ' // trim(file_loc) &
349 & //
' was written with m = ' // trim(file_m_str) &
350 & //
'. Post-processing must use the same grid as the run that wrote the ' &
351 & //
'restart files, or it reads past the end of every file and writes NaN.')
353 data_size =
m_glb + 2
354 call mpi_file_open(mpi_comm_world, file_loc, mpi_mode_rdonly, mpi_info_int, ifile, ierr)
357 call mpi_type_vector(data_size, 1, stride, mpi_p, filetype, ierr)
358 call mpi_type_commit(filetype, ierr)
361 call mpi_file_set_view(ifile, offset, mpi_p, filetype,
'native', mpi_info_int, ierr)
363 call mpi_file_read(ifile, x_cb_glb, data_size, mpi_p, status, ierr)
364 call mpi_file_close(ifile, ierr)
366 call s_mpi_abort(
'File ' // trim(file_loc) //
' is missing. Exiting.')
374 file_loc = trim(case_dir) //
'/restart_data' // trim(mpiiofs) //
'y_cb.dat'
375 inquire (file=trim(file_loc), exist=file_exist)
378 data_size =
n_glb + 2
379 call mpi_file_open(mpi_comm_world, file_loc, mpi_mode_rdonly, mpi_info_int, ifile, ierr)
382 call mpi_type_vector(data_size, 1, stride, mpi_p, filetype, ierr)
383 call mpi_type_commit(filetype, ierr)
386 call mpi_file_set_view(ifile, offset, mpi_p, filetype,
'native', mpi_info_int, ierr)
388 call mpi_file_read(ifile, y_cb_glb, data_size, mpi_p, status, ierr)
389 call mpi_file_close(ifile, ierr)
391 call s_mpi_abort(
'File ' // trim(file_loc) //
' is missing. Exiting.')
398 file_loc = trim(case_dir) //
'/restart_data' // trim(mpiiofs) //
'z_cb.dat'
399 inquire (file=trim(file_loc), exist=file_exist)
402 data_size =
p_glb + 2
403 call mpi_file_open(mpi_comm_world, file_loc, mpi_mode_rdonly, mpi_info_int, ifile, ierr)
406 call mpi_type_vector(data_size, 1, stride, mpi_p, filetype, ierr)
407 call mpi_type_commit(filetype, ierr)
410 call mpi_file_set_view(ifile, offset, mpi_p, filetype,
'native', mpi_info_int, ierr)
412 call mpi_file_read(ifile, z_cb_glb, data_size, mpi_p, status, ierr)
413 call mpi_file_close(ifile, ierr)
415 call s_mpi_abort(
'File ' // trim(file_loc) //
' is missing. Exiting.')
425 deallocate (x_cb_glb, y_cb_glb, z_cb_glb)
440 integer,
intent(in) :: t_step
441 integer(KIND=MPI_OFFSET_KIND),
intent(inout) :: m_mok, n_mok, p_mok
442 integer(KIND=MPI_OFFSET_KIND),
intent(inout) :: wp_mok, mok, str_mok, nvars_mok
443 integer :: ifile, ierr, data_size
444 integer,
dimension(MPI_STATUS_SIZE) :: status
445 integer(KIND=MPI_OFFSET_KIND) :: disp, var_mok
446 character(LEN=path_len + 2*name_len) :: file_loc
447 logical :: file_exist
448 character(len=10) :: t_step_string
451 if (file_per_process)
then
453 write (file_loc,
'(I0,A1,I7.7,A)') t_step,
'_',
proc_rank,
'.dat'
454 file_loc = trim(case_dir) //
'/restart_data/lustre_' // trim(t_step_string) // trim(mpiiofs) // trim(file_loc)
455 inquire (file=trim(file_loc), exist=file_exist)
458 call mpi_file_open(mpi_comm_self, file_loc, mpi_mode_rdonly, mpi_info_int, ifile, ierr)
461 if (down_sample)
then
471 if (down_sample)
then
472 data_size = (m + 3)*(n + 3)*(p + 3)
474 data_size = (m + 1)*(n + 1)*(p + 1)
477 m_mok = int(
m_glb + 1, mpi_offset_kind)
478 n_mok = int(
n_glb + 1, mpi_offset_kind)
479 p_mok = int(
p_glb + 1, mpi_offset_kind)
480 wp_mok = int(storage_size(0._stp)/8, mpi_offset_kind)
481 mok = int(1._wp, mpi_offset_kind)
482 str_mok = int(name_len, mpi_offset_kind)
483 nvars_mok = int(sys_size, mpi_offset_kind)
485 if (bubbles_euler .or. hypoelasticity .or. mhd)
then
487 var_mok = int(i, mpi_offset_kind)
488 call mpi_file_read_all(ifile,
mpi_io_data%var(i)%sf(:,:,:), data_size*mpi_io_type, mpi_io_p, status, ierr)
492 var_mok = int(i, mpi_offset_kind)
493 call mpi_file_read_all(ifile,
mpi_io_data%var(i)%sf(:,:,:), data_size*mpi_io_type, mpi_io_p, status, ierr)
498 call mpi_file_close(ifile, ierr)
500 if (down_sample)
then
508 call s_mpi_abort(
'File ' // trim(file_loc) //
' is missing. Exiting.')
511 write (file_loc,
'(I0,A)') t_step,
'.dat'
512 file_loc = trim(case_dir) //
'/restart_data' // trim(mpiiofs) // trim(file_loc)
513 inquire (file=trim(file_loc), exist=file_exist)
516 call mpi_file_open(mpi_comm_world, file_loc, mpi_mode_rdonly, mpi_info_int, ifile, ierr)
522 var_mok = int(i, mpi_offset_kind)
524 disp = m_mok*max(mok, n_mok)*max(mok, p_mok)*wp_mok*(var_mok - 1)
526 call mpi_file_set_view(ifile, disp, mpi_p,
mpi_io_data%view(i),
'native', mpi_info_int, ierr)
527 call mpi_file_read_all(ifile,
mpi_io_data%var(i)%sf(:,:,:), data_size*mpi_io_type, mpi_io_p, status, ierr)
531 call mpi_file_close(ifile, ierr)
535 call s_mpi_abort(
'File ' // trim(file_loc) //
' is missing. Exiting.')
554 if (down_sample)
then
556 allocate (
q_cons_temp(i)%sf(-1:m + 1,-1:n + 1,-1:p + 1))
566 allocate (
bc_type(1:num_dims,1:2))
568 allocate (
bc_type(1, 1)%sf(0:0,0:n,0:p))
569 allocate (
bc_type(1, 2)%sf(0:0,0:n,0:p))
579 if (parallel_io .neqv. .true.)
then
595 if (down_sample)
then
608 if (chemistry .or. heat_conduction)
then
633 integer,
intent(in) ::
k, reg(6), isect_lo(3), sidx(3), fm, fn, fp, rr
640 allocate (
amr_fine(
k)%q_cons(1:sys_size))
642 allocate (
amr_fine(
k)%q_cons(i)%sf(0:fm,0:fn,0:fp))
665 integer,
intent(out) :: sidx(3), ext(3)
669 if (n > 0) ext(2) = n
670 if (p > 0) ext(3) = p
672 sidx(1) = start_idx(1)
673 if (n > 0) sidx(2) = start_idx(2)
674 if (p > 0) sidx(3) = start_idx(3)
682 integer,
intent(in) :: reg(6), sidx(3), ext(3)
683 integer,
intent(out) :: isect_lo(3), isect_hi(3)
684 logical,
intent(out) :: owns
688 isect_lo(d) = max(reg(d), sidx(d))
689 isect_hi(d) = min(reg(3 + d), sidx(d) + ext(d))
691 owns = isect_lo(1) <= isect_hi(1)
692 if (n > 0) owns = owns .and. isect_lo(2) <= isect_hi(2)
693 if (p > 0) owns = owns .and. isect_lo(3) <= isect_hi(3)
700 integer,
intent(in) :: reg(6), lvl, fmf
703 cw = max(reg(4) - reg(1) + 1, 1)
705 if (lvl < 1 .or. rr < 2 .or. mod(fmf + 1, &
706 & cw) /= 0)
call s_mpi_abort(
'amr post: malformed fine-block header (level/' &
707 & //
'extent inconsistent); the AMR restart writer and reader header layouts differ')
714 integer,
intent(in) :: reg(6), isect_lo(3), isect_hi(3), rr
715 integer,
intent(out) :: foff(3), fcnt(3)
717 foff = (isect_lo - reg(1:3))*rr
718 fcnt = (isect_hi - isect_lo + 1)*rr
719 if (n == 0) then; foff(2) = 0; fcnt(2) = 1;
end if
720 if (p == 0) then; foff(3) = 0; fcnt(3) = 1;
end if
728 integer,
intent(in) :: t_step
729 character(LEN=path_len + 3*name_len) :: file_loc
730 logical :: file_exist, owns
732 integer :: sidx(3), ext(3), isect_lo(3), isect_hi(3), foff(3), fcnt(3), rr
733 integer :: have_loc, have_glb, ncoarse, ncoarse_glb
734 real(stp),
allocatable :: sbuf(:,:,:,:)
737 integer :: ifile, ierr, cnt, fi, fj, fk
738 integer(8) :: idx, cnt8, plane
740 integer,
dimension(MPI_STATUS_SIZE) :: status
741 real(stp),
allocatable :: buf(:)
745 if (.not. amr)
return
750 inquire (file=trim(file_loc), exist=file_exist)
752 have_loc = merge(1, 0, file_exist)
754 if (have_glb == 0)
then
755 if (
proc_rank == 0 .and. file_exist) print
'(A,I0,A)',
' [amr] post: AMR fine-block file(s) at t_step ', t_step, &
756 &
' are missing on some ranks; writing the coarse mesh only'
757 if (
proc_rank == 0 .and. .not. file_exist) print
'(A,I0,A)',
' [amr] post: no AMR fine-block file at t_step ', &
758 & t_step,
'; writing the coarse mesh only'
762 if (.not. parallel_io)
then
763 open (2, file=trim(file_loc), form=
'unformatted', action=
'read', status=
'old')
770 read (2) reg, lvl,
rm, rn, rp
775 if (owns .and. lvl >= 1) ncoarse = ncoarse + 1
781 read (2) sbuf(0:
rm,0:rn,0:rp,i)
789 & foff(2):foff(2) + fcnt(2) - 1,foff(3):foff(3) + fcnt(3) - 1,i)
797 if (
proc_rank == 0 .and. ncoarse_glb > 0) print
'(A)', &
798 &
' [amr] post: WARNING: with parallel_io = F each rank ' &
799 & //
'reads only its own restart file, and some refined regions belong to a block another rank owns; those ' &
800 & //
'regions are written at coarse resolution. Use parallel_io = T for a complete AMR overlay at np > 1.'
803 call mpi_file_open(mpi_comm_world, file_loc, mpi_mode_rdonly, mpi_info_int, ifile, ierr)
804 call mpi_file_read_at_all(ifile, int(0, mpi_offset_kind), ghdr,
amr_restart_ghdr_ints, mpi_integer, status, ierr)
810 reg = cat%reg(:,
k); lvl = cat%lvl(
k)
812 owns = owns .and. cat%own(1,
k) > 0
816 if (owns) cnt8 = int(
sys_size_io, 8)*(cat%own(2,
k) + 1)*(cat%own(3,
k) + 1)*(cat%own(4,
k) + 1)
817 if (cnt8 > huge(cnt))
call s_mpi_abort(
'amr post: a fine block exceeds the MPI read count limit')
819 allocate (buf(max(cnt, 1)))
821 call mpi_file_read_at_all(ifile, cat%data_disp(
k), buf, cnt*mpi_io_type, mpi_io_p, status, ierr)
827 plane = int(cat%own(3,
k) + 1, 8)*(cat%own(2,
k) + 1)
829 do fk = 0, fcnt(3) - 1
830 do fj = 0, fcnt(2) - 1
831 do fi = 0, fcnt(1) - 1
832 idx = (i - 1)*plane*(cat%own(4, &
833 &
k) + 1) + (fk + foff(3))*plane + (fj + foff(2))*int(cat%own(2,
k) + 1, &
834 & 8) + (fi + foff(1)) + 1
843 call mpi_file_close(ifile, ierr)
847 if (
proc_rank == 0) print
'(A,I0,A,I0,A)',
' [amr] post: read ', nblk,
' fine block(s); rank 0 keeps ',
amr_num_fine, &
real(wp), intent(inout) rm
The AMR fine-level restart file layout shared by m_amr_restart (writer/reader) and post_process's ove...
pure subroutine, public s_amr_subdivide_cb(pcb, pcb_lb, lo, nfine, rr, fcb)
Fine cell boundaries fcb(-1:nfine) by rr-way subdivision of the coarse cells of pcb starting at coars...
character(len=path_len+3 *name_len) function, public f_amr_restart_path(t_step)
The fine-level restart file for time step t_step: one file per rank without parallel_io,...
integer, parameter, public amr_restart_ghdr_ints
global header length (ints)
impure subroutine, public s_amr_restart_check_header(ghdr, nvar, who, nblk, ref_ratio, max_level)
Validate the global header: the rank count (serial files need a match), nvar, the stored word size an...
impure subroutine, public s_amr_restart_read_catalog(ifile, nblk, nvar, cat)
Read every block's header and ownership record from an open parallel_io file (rank 0 reads,...
Noncharacteristic and processor boundary condition application for ghost cells and buffer regions.
Boundary condition restart I/O, capillary/IGR buffer population, and grid-variable buffers.
subroutine s_assign_default_bc_type(bc_type)
Initialize the per-cell boundary condition type arrays with the global default BC values.
subroutine s_read_serial_boundary_condition_files(step_dirpath, bc_type)
Read boundary condition type and buffer data from serial (unformatted) restart files.
subroutine s_read_parallel_boundary_condition_files(bc_type, strict)
Read boundary condition type and buffer data from per-rank parallel files using MPI I/O.
Platform-specific file and directory operations: create, delete, inquire, getcwd, and basename.
impure subroutine my_inquire(fileloc, dircheck)
Inquire on the existence of a directory or file.
Shared derived types for field data, patch geometry, bubble dynamics, and MPI I/O structures.
Global parameters for the post-process: domain geometry, equation of state, and output database setti...
type(int_bounds_info) offset_y
type(int_bounds_info) bc_z
real(wp), dimension(:), allocatable y_cc
integer proc_rank
Rank of the local processor.
type(mpi_io_ib_var), public mpi_io_ib_data
real(wp), dimension(:), allocatable y_cb
real(wp), dimension(:), allocatable dz
integer buff_size
Number of ghost cells for boundary condition storage.
real(wp), dimension(:), allocatable z_cb
type(int_bounds_info) bc_y
real(wp), dimension(:), allocatable x_cc
type(int_bounds_info) bc_x
real(wp), dimension(:), allocatable x_cb
real(wp), dimension(:), allocatable dy
type(int_bounds_info) offset_x
integer sys_size_io
Variables per restart/BC record: sys_size less the post-only beta slot.
real(wp), dimension(:), allocatable z_cc
type(int_bounds_info) offset_z
type(mpi_io_var), public mpi_io_data
real(wp), dimension(:), allocatable dx
Cell-width distributions in the x-, y- and z-coordinate directions.
Basic floating-point utilities: approximate equality, default detection, and coordinate bounds.
pure integer function, public f_save_index(t_step, cfl_mode, t_step_save)
Index of the save written at t_step: t_step itself under CFL-based stepping (the caller passes the sa...
Utility routines for bubble model setup, coordinate transforms, array sampling, and special functions...
elemental subroutine, public s_int_to_str(i, res)
Convert an integer to its trimmed string representation.
MPI communication layer: domain decomposition, halo exchange, reductions, and parallel I/O setup.
impure subroutine s_mpi_abort(prnt, code)
The subroutine terminates the MPI execution environment.
impure subroutine s_mpi_barrier
Halts all processes until all have reached barrier.
impure subroutine s_mpi_allreduce_integer_min(var_loc, var_glb)
Reduce a local integer value to its global minimum across all MPI ranks.
impure subroutine s_check_mpi_file_open(ierr, file_loc)
Abort naming the file if MPI_FILE_OPEN failed. File errors default to MPI_ERRORS_RETURN,...
subroutine s_apply_grid_from_global_dim(x_cb_glb, m_dim_glb, m_dim, sidx, bc_beg, bc_end, cb_lo, cb_hi, cw_lo, cw_hi, x_cb_loc, x_cc_loc, dx_loc)
Populate the local cell-boundary, cell-center, and cell-width arrays in one direction directly from t...
impure subroutine s_initialize_mpi_data(q_cons_vf, ib_markers, ib_mpi_data, beta, qbmm_pb, qbmm_mv)
Set up MPI I/O data views and variable pointers for parallel file output.
subroutine s_initialize_mpi_data_ds(m_ds, n_ds, p_ds, q_cons_vf)
Set up MPI I/O data views for downsampled (coarsened) parallel file output.
impure subroutine s_mpi_allreduce_integer_max(var_loc, var_glb)
Reduce a local integer value to its global maximum across all MPI ranks.
MPI gather and scatter operations for distributing post-process grid and flow-variable data.
Every block's header, ownership record and data-chunk byte offset, read collectively by all ranks.
Derived type annexing an integer scalar field (SF).
Derived type annexing a scalar field (SF).