|
MFC
Exascale flow solver
|
Reads raw simulation grid and conservative-variable data for a given time-step and fills buffer regions. More...
Data Types | |
| interface | s_read_abstract_data_files |
| Subroutine for reading data files. More... | |
| type | amr_fine_block |
| One AMR fine-block piece owned by this rank, held for visualization overlay of the refined solution. More... | |
Functions/Subroutines | |
| impure subroutine | s_read_grid_data_direction (t_step_dir, direction, cb_array, d_array, cc_array, size_dim) |
| Helper subroutine to read grid data files for a given direction. | |
| impure subroutine | s_setup_mpi_io_params (data_size, m_mok, n_mok, p_mok, wp_mok, mok, str_mok, nvars_mok) |
| Helper subroutine to setup MPI data I/O parameters. | |
| impure logical function, public | f_save_exists (t_step) |
| Does a saved restart exist for this index? Under cfl_dt a step can cross two t_save boundaries, so save indices may be skipped legitimately and the reader must skip them. Only the shared-file layout is checked: with file_per_process the answer would not be rank-uniform, so that path stays fail-closed. | |
| impure subroutine | s_read_ib_data_files (file_loc_base, t_step) |
| Helper subroutine to read IB data files. | |
| impure subroutine | s_allocate_field_arrays (local_start_idx, end_x, end_y, end_z) |
| Helper subroutine to allocate field arrays for given dimensionality. | |
| impure subroutine, public | s_read_serial_data_files (t_step) |
| Read the raw data files present in the corresponding time-step directory and to populate the associated grid and conservative variables. | |
| impure subroutine, public | s_read_parallel_data_files (t_step) |
| Parallel-read the raw data files present in the corresponding time-step directory and to populate the associated grid and conservative variables. | |
| impure subroutine | s_read_parallel_conservative_data (t_step, m_mok, n_mok, p_mok, wp_mok, mok, str_mok, nvars_mok) |
| Helper subroutine to read parallel conservative variable data. | |
| impure subroutine, public | s_initialize_data_input_module |
| Computation of parameters, allocation procedures, and/or any other tasks needed to properly setup the module. | |
| impure subroutine, public | s_finalize_data_input_module |
| Deallocation procedures for the module. | |
| impure subroutine | s_setup_amr_block (k, reg, isect_lo, sidx, fm, fn, fp, rr) |
| Populate block slot k metadata, allocate its conservative fields, and reconstruct its fine coordinates from the coarse cell boundaries (x_cb/y_cb/z_cb, already read for this t_step). isect_lo is the block's global coarse origin; sidx is this rank's global coarse origin (0 for a single-rank/no-MPI run). rr is the refinement factor for this block (amr_ref_ratio**level). | |
| impure subroutine | s_amr_local_domain (sidx, ext) |
| This rank's subdomain in global coarse cells: origin sidx (0 for a single rank or no MPI) and extent ext. | |
| pure subroutine | s_amr_block_isect (reg, sidx, ext, isect_lo, isect_hi, owns) |
| Intersection of the block region reg with this rank's subdomain (sidx, ext); owns = non-empty in every active dimension. | |
| impure integer function | f_amr_block_ratio (reg, lvl, fmf) |
| Refinement factor of a block from its level and fine x-extent fmf (cells - 1); aborts on an inconsistent header. | |
| pure subroutine | s_amr_block_piece (reg, isect_lo, isect_hi, rr, foff, fcnt) |
| The kept sub-box of a block: fine-cell offset foff from the block origin and count fcnt of the intersection. | |
| impure subroutine, public | s_read_amr_data (t_step) |
| Read the AMR fine-level restart file for t_step (layout: m_amr_restart_io) and keep this rank's pieces of each block for the post-process overlay. No-op when amr is off or the file is absent. | |
| impure subroutine, public | s_free_amr_data () |
| Release the stored AMR fine-block pieces. | |
Variables | |
| type(scalar_field), dimension(:), allocatable, public | q_cons_vf |
| Conservative variables. | |
| type(scalar_field), dimension(:), allocatable, public | q_cons_temp |
| type(scalar_field), dimension(:), allocatable, public | q_prim_vf |
| Primitive variables. | |
| type(integer_field), dimension(:,:), allocatable, public | bc_type |
| Boundary condition identifiers. | |
| type(scalar_field), public | q_t_sf |
| Temperature field. | |
| type(integer_field), public | ib_markers |
| type(amr_fine_block), dimension(:), allocatable, public | amr_fine |
| this rank's owned block pieces | |
| integer, public | amr_num_fine |
| number of block pieces this rank owns (<= file's block count) | |
| procedure(s_read_abstract_data_files), pointer, public | s_read_data_files => null() |
Reads raw simulation grid and conservative-variable data for a given time-step and fills buffer regions.
| impure integer function m_data_input::f_amr_block_ratio | ( | integer, dimension(6), intent(in) | reg, |
| integer, intent(in) | lvl, | ||
| integer, intent(in) | fmf ) |
Refinement factor of a block from its level and fine x-extent fmf (cells - 1); aborts on an inconsistent header.
Definition at line 698 of file m_data_input.f90.
| impure logical function, public m_data_input::f_save_exists | ( | integer, intent(in) | t_step | ) |
Does a saved restart exist for this index? Under cfl_dt a step can cross two t_save boundaries, so save indices may be skipped legitimately and the reader must skip them. Only the shared-file layout is checked: with file_per_process the answer would not be rank-uniform, so that path stays fail-closed.
Definition at line 120 of file m_data_input.f90.
| impure subroutine m_data_input::s_allocate_field_arrays | ( | integer, intent(in) | local_start_idx, |
| integer, intent(in) | end_x, | ||
| integer, intent(in) | end_y, | ||
| integer, intent(in) | end_z ) |
Helper subroutine to allocate field arrays for given dimensionality.
Definition at line 220 of file m_data_input.f90.
| pure subroutine m_data_input::s_amr_block_isect | ( | integer, dimension(6), intent(in) | reg, |
| integer, dimension(3), intent(in) | sidx, | ||
| integer, dimension(3), intent(in) | ext, | ||
| integer, dimension(3), intent(out) | isect_lo, | ||
| integer, dimension(3), intent(out) | isect_hi, | ||
| logical, intent(out) | owns ) |
Intersection of the block region reg with this rank's subdomain (sidx, ext); owns = non-empty in every active dimension.
Definition at line 680 of file m_data_input.f90.
| pure subroutine m_data_input::s_amr_block_piece | ( | integer, dimension(6), intent(in) | reg, |
| integer, dimension(3), intent(in) | isect_lo, | ||
| integer, dimension(3), intent(in) | isect_hi, | ||
| integer, intent(in) | rr, | ||
| integer, dimension(3), intent(out) | foff, | ||
| integer, dimension(3), intent(out) | fcnt ) |
The kept sub-box of a block: fine-cell offset foff from the block origin and count fcnt of the intersection.
Definition at line 712 of file m_data_input.f90.
| impure subroutine m_data_input::s_amr_local_domain | ( | integer, dimension(3), intent(out) | sidx, |
| integer, dimension(3), intent(out) | ext ) |
This rank's subdomain in global coarse cells: origin sidx (0 for a single rank or no MPI) and extent ext.
Definition at line 663 of file m_data_input.f90.
| impure subroutine, public m_data_input::s_finalize_data_input_module |
Deallocation procedures for the module.
Definition at line 588 of file m_data_input.f90.
| impure subroutine, public m_data_input::s_free_amr_data |
Release the stored AMR fine-block pieces.
Definition at line 853 of file m_data_input.f90.
| impure subroutine, public m_data_input::s_initialize_data_input_module |
Computation of parameters, allocation procedures, and/or any other tasks needed to properly setup the module.
Definition at line 543 of file m_data_input.f90.
| impure subroutine, public m_data_input::s_read_amr_data | ( | integer, intent(in) | t_step | ) |
Read the AMR fine-level restart file for t_step (layout: m_amr_restart_io) and keep this rank's pieces of each block for the post-process overlay. No-op when amr is off or the file is absent.
Definition at line 726 of file m_data_input.f90.
| impure subroutine m_data_input::s_read_grid_data_direction | ( | character(len=*), intent(in) | t_step_dir, |
| character(len=1), intent(in) | direction, | ||
| real(wp), dimension(-1:), intent(out) | cb_array, | ||
| real(wp), dimension(0:), intent(out) | d_array, | ||
| real(wp), dimension(0:), intent(out) | cc_array, | ||
| integer, intent(in) | size_dim ) |
Helper subroutine to read grid data files for a given direction.
Definition at line 63 of file m_data_input.f90.
| impure subroutine m_data_input::s_read_ib_data_files | ( | character(len=*), intent(in) | file_loc_base, |
| integer, intent(in), optional | t_step ) |
Helper subroutine to read IB data files.
Definition at line 142 of file m_data_input.f90.
| impure subroutine m_data_input::s_read_parallel_conservative_data | ( | integer, intent(in) | t_step, |
| integer(kind=mpi_offset_kind), intent(inout) | m_mok, | ||
| integer(kind=mpi_offset_kind), intent(inout) | n_mok, | ||
| integer(kind=mpi_offset_kind), intent(inout) | p_mok, | ||
| integer(kind=mpi_offset_kind), intent(inout) | wp_mok, | ||
| integer(kind=mpi_offset_kind), intent(inout) | mok, | ||
| integer(kind=mpi_offset_kind), intent(inout) | str_mok, | ||
| integer(kind=mpi_offset_kind), intent(inout) | nvars_mok ) |
Helper subroutine to read parallel conservative variable data.
Definition at line 438 of file m_data_input.f90.
| impure subroutine, public m_data_input::s_read_parallel_data_files | ( | integer, intent(in) | t_step | ) |
Parallel-read the raw data files present in the corresponding time-step directory and to populate the associated grid and conservative variables.
Definition at line 303 of file m_data_input.f90.
| impure subroutine, public m_data_input::s_read_serial_data_files | ( | integer, intent(in) | t_step | ) |
Read the raw data files present in the corresponding time-step directory and to populate the associated grid and conservative variables.
Definition at line 243 of file m_data_input.f90.
| impure subroutine m_data_input::s_setup_amr_block | ( | integer, intent(in) | k, |
| integer, dimension(6), intent(in) | reg, | ||
| integer, dimension(3), intent(in) | isect_lo, | ||
| integer, dimension(3), intent(in) | sidx, | ||
| integer, intent(in) | fm, | ||
| integer, intent(in) | fn, | ||
| integer, intent(in) | fp, | ||
| integer, intent(in) | rr ) |
Populate block slot k metadata, allocate its conservative fields, and reconstruct its fine coordinates from the coarse cell boundaries (x_cb/y_cb/z_cb, already read for this t_step). isect_lo is the block's global coarse origin; sidx is this rank's global coarse origin (0 for a single-rank/no-MPI run). rr is the refinement factor for this block (amr_ref_ratio**level).
Definition at line 631 of file m_data_input.f90.
| impure subroutine m_data_input::s_setup_mpi_io_params | ( | integer, intent(out) | data_size, |
| integer(kind=mpi_offset_kind), intent(out) | m_mok, | ||
| integer(kind=mpi_offset_kind), intent(out) | n_mok, | ||
| integer(kind=mpi_offset_kind), intent(out) | p_mok, | ||
| integer(kind=mpi_offset_kind), intent(out) | wp_mok, | ||
| integer(kind=mpi_offset_kind), intent(out) | mok, | ||
| integer(kind=mpi_offset_kind), intent(out) | str_mok, | ||
| integer(kind=mpi_offset_kind), intent(out) | nvars_mok ) |
Helper subroutine to setup MPI data I/O parameters.
Definition at line 92 of file m_data_input.f90.
| type(amr_fine_block), dimension(:), allocatable, public m_data_input::amr_fine |
this rank's owned block pieces
Definition at line 55 of file m_data_input.f90.
| integer, public m_data_input::amr_num_fine |
number of block pieces this rank owns (<= file's block count)
Definition at line 56 of file m_data_input.f90.
| type(integer_field), dimension(:,:), allocatable, public m_data_input::bc_type |
Boundary condition identifiers.
Definition at line 43 of file m_data_input.f90.
| type(integer_field), public m_data_input::ib_markers |
Definition at line 45 of file m_data_input.f90.
| type(scalar_field), dimension(:), allocatable, public m_data_input::q_cons_temp |
Definition at line 41 of file m_data_input.f90.
| type(scalar_field), dimension(:), allocatable, public m_data_input::q_cons_vf |
Conservative variables.
Definition at line 40 of file m_data_input.f90.
| type(scalar_field), dimension(:), allocatable, public m_data_input::q_prim_vf |
Primitive variables.
Definition at line 42 of file m_data_input.f90.
| type(scalar_field), public m_data_input::q_t_sf |
Temperature field.
Definition at line 44 of file m_data_input.f90.
| procedure(s_read_abstract_data_files), pointer, public m_data_input::s_read_data_files => null() |
Definition at line 58 of file m_data_input.f90.