|
MFC
Exascale flow solver
|
Contains module m_data_input. More...
Go to the source code of this file.
Data Types | |
| interface | m_data_input::s_read_abstract_data_files |
| Subroutine for reading data files. More... | |
| type | m_data_input::amr_fine_block |
| One AMR fine-block piece owned by this rank, held for visualization overlay of the refined solution. More... | |
Modules | |
| module | m_data_input |
| Reads raw simulation grid and conservative-variable data for a given time-step and fills buffer regions. | |
Functions/Subroutines | |
| impure subroutine | m_data_input::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 | m_data_input::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 | m_data_input::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 | m_data_input::s_read_ib_data_files (file_loc_base, t_step) |
| Helper subroutine to read IB data files. | |
| impure subroutine | m_data_input::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 | m_data_input::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 | m_data_input::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 | m_data_input::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 | m_data_input::s_initialize_data_input_module |
| Computation of parameters, allocation procedures, and/or any other tasks needed to properly setup the module. | |
| impure subroutine, public | m_data_input::s_finalize_data_input_module |
| Deallocation procedures for the module. | |
| impure subroutine | m_data_input::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 | m_data_input::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 | m_data_input::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 | m_data_input::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 | m_data_input::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 | m_data_input::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 | m_data_input::s_free_amr_data () |
| Release the stored AMR fine-block pieces. | |
Variables | |
| type(scalar_field), dimension(:), allocatable, public | m_data_input::q_cons_vf |
| Conservative variables. | |
| type(scalar_field), dimension(:), allocatable, public | m_data_input::q_cons_temp |
| type(scalar_field), dimension(:), allocatable, public | m_data_input::q_prim_vf |
| Primitive variables. | |
| type(integer_field), dimension(:,:), allocatable, public | m_data_input::bc_type |
| Boundary condition identifiers. | |
| type(scalar_field), public | m_data_input::q_t_sf |
| Temperature field. | |
| type(integer_field), public | m_data_input::ib_markers |
| type(amr_fine_block), dimension(:), allocatable, public | m_data_input::amr_fine |
| this rank's owned block pieces | |
| integer, public | m_data_input::amr_num_fine |
| number of block pieces this rank owns (<= file's block count) | |
| procedure(s_read_abstract_data_files), pointer, public | m_data_input::s_read_data_files => null() |
Contains module m_data_input.
Definition in file m_data_input.f90.