MPI-AMRVAC  3.0
The MPI - Adaptive Mesh Refinement - Versatile Advection Code
Modules | Functions/Subroutines | Variables
mod_input_output.t File Reference

Go to the source code of this file.

Modules

module  mod_input_output
 Module for reading input and writing output.
 

Functions/Subroutines

subroutine mod_input_output::read_arguments ()
 Read the command line arguments passed to amrvac. More...
 
subroutine mod_input_output::read_par_files ()
 Read in the user-supplied parameter-file. More...
 
subroutine mod_input_output::get_fields_string (line, delims, n_max, fields, n_found, fully_read)
 Routine to find entries in a string. More...
 
subroutine mod_input_output::saveamrfile (ifile)
 
subroutine, public mod_input_output::create_output_file (fh, ix, extension, suffix)
 Standard method for creating a new output file. More...
 
logical function mod_input_output::snapshot_exists (ix)
 
integer function mod_input_output::get_snapshot_index (filename)
 
subroutine, public mod_input_output::snapshot_write_header1 (fh, offset_tree, offset_block, dataset_names, nw_vars)
 Write header for a snapshot, generalize cons_wnames and nw. More...
 
subroutine, public mod_input_output::snapshot_write_header (fh, offset_tree, offset_block)
 Write header for a snapshot. More...
 
subroutine mod_input_output::snapshot_read_header (fh, offset_tree, offset_block)
 Read header for a snapshot. More...
 
pure integer function, public mod_input_output::count_ix (ixOL)
 Compute number of elements in index range. More...
 
subroutine, public mod_input_output::block_shape_io (igrid, n_ghost, ixOL, n_values)
 Determine the shape of a block for output (whether to include ghost cells, and on which sides) More...
 
subroutine mod_input_output::write_snapshot
 
subroutine mod_input_output::read_snapshot
 Routine to read in snapshots (.dat files). When it cannot recognize the file version, it will automatically try the 'old' reader. More...
 
subroutine mod_input_output::read_snapshot_old ()
 
subroutine mod_input_output::printlog_default
 Write volume-averaged values and other information to the log file. More...
 
subroutine mod_input_output::printlog_regression_test ()
 Print a log that can be used to check whether the code still produces the same output (regression test) More...
 
subroutine mod_input_output::get_volume_average (power, mode, volume)
 Compute mean(w**power) over the leaves of the grid. The first mode (power=1) corresponds to the mean, the second to the mean squared values and so on. More...
 
subroutine mod_input_output::get_volume_coverage (vol_cov)
 Compute how much of the domain is covered by each grid level. This routine does not take a non-Cartesian geometry into account. More...
 
subroutine mod_input_output::get_volume_average_func (func, f_avg, volume)
 Compute the volume average of func(w) over the leaves of the grid. More...
 
subroutine mod_input_output::get_global_maxima (wmax)
 Compute global maxima of iw variables over the leaves of the grid. More...
 
subroutine mod_input_output::get_global_minima (wmin)
 Compute global minima of iw variables over the leaves of the grid. More...
 

Variables

integer, parameter mod_input_output::version_number = 5
 Version number of the .dat file output. More...
 
integer, dimension(3), parameter mod_input_output::compatible_versions = [3, 4, 5]
 List of compatible versions. More...
 
integer mod_input_output::nw_found
 number of w found in dat files More...
 
logical mod_input_output::save_now
 whether a manually inserted snapshot is saved More...
 
character(len= *), parameter mod_input_output::fmt_r = 'es16.8'
 
character(len= *), parameter mod_input_output::fmt_r2 = 'es10.2'
 
character(len= *), parameter mod_input_output::fmt_i = 'i8'