![]() |
(git:1f1a7a2)
|
routines to handle the output, The idea is to remove the decision of wheter to output and what to output from the code that does the output, and centralize it here. More...
Data Types | |
| type | cp_openpmd_per_call_value_type |
Functions/Subroutines | |
| type(cp_openpmd_per_call_value_type) function, public | cp_openpmd_get_value_unit_nr (key) |
| subroutine, public | cp_openpmd_output_finalize () |
| Close all outputs. | |
| integer function, public | cp_openpmd_print_key_unit_nr (logger, basis_section, print_key_path, middle_name, ignore_should_output, mpi_io, fout, openpmd_basename) |
| ... | |
| subroutine, public | cp_openpmd_print_key_finished_output (unit_nr, logger, basis_section, print_key_path, local, ignore_should_output, mpi_io) |
| should be called after you finish working with a unit obtained with cp_openpmd_print_key_unit_nr, so that the file that might have been opened can be closed. | |
| subroutine, public | cp_openpmd_close_iterations () |
| character(len=default_string_length) function, public | cp_openpmd_get_default_extension () |
routines to handle the output, The idea is to remove the decision of wheter to output and what to output from the code that does the output, and centralize it here.
| type(cp_openpmd_per_call_value_type) function, public cp_output_handling_openpmd::cp_openpmd_get_value_unit_nr | ( | integer, intent(in) | key | ) |
Definition at line 588 of file cp_output_handling_openpmd.F.
| subroutine, public cp_output_handling_openpmd::cp_openpmd_output_finalize |
Close all outputs.
Definition at line 603 of file cp_output_handling_openpmd.F.
| integer function, public cp_output_handling_openpmd::cp_openpmd_print_key_unit_nr | ( | type(cp_logger_type), pointer | logger, |
| type(section_vals_type), intent(in) | basis_section, | ||
| character(len=*), intent(in), optional | print_key_path, | ||
| character(len=*), intent(in), optional | middle_name, | ||
| logical, intent(in), optional | ignore_should_output, | ||
| logical, intent(inout), optional | mpi_io, | ||
| character(len=default_path_length), intent(out), optional | fout, | ||
| character(len=*), intent(in), optional | openpmd_basename | ||
| ) |
...
| logger | ... |
| basis_section | ... |
| print_key_path | ... |
| extension | ... |
| middle_name | ... |
| local | ... |
| log_filename | ... |
| ignore_should_output | ... |
| do_backup | ... |
| is_new_file | true if this rank created a new (or rewound) file, false otherwise |
| mpi_io | True if the file should be opened in parallel on all processors belonging to the communicator group. Automatically disabled if the file form or access mode is unsuitable for MPI IO. Return value indicates whether MPI was actually used and therefore the flag must also be passed to the file closing directive. |
| fout | Name of the actual file where the output will be written. Needed mainly for MPI IO because inquiring the filename from the MPI filehandle does not work across all MPI libraries. |
| openpmd_basename | Used to associate an identifier to each callsite of this module |
| use_openpmd | ... |
Definition at line 640 of file cp_output_handling_openpmd.F.
| subroutine, public cp_output_handling_openpmd::cp_openpmd_print_key_finished_output | ( | integer, intent(inout) | unit_nr, |
| type(cp_logger_type), pointer | logger, | ||
| type(section_vals_type), intent(in) | basis_section, | ||
| character(len=*), intent(in), optional | print_key_path, | ||
| logical, intent(in), optional | local, | ||
| logical, intent(in), optional | ignore_should_output, | ||
| logical, intent(in), optional | mpi_io | ||
| ) |
should be called after you finish working with a unit obtained with cp_openpmd_print_key_unit_nr, so that the file that might have been opened can be closed.
the inputs should be exactly the same of the corresponding cp_openpmd_print_key_unit_nr
| unit_nr | ... |
| logger | ... |
| basis_section | ... |
| print_key_path | ... |
| local | ... |
| ignore_should_output | ... |
| mpi_io | True if file was opened in parallel with MPI |
| use_openpmd | ... |
Definition at line 753 of file cp_output_handling_openpmd.F.
| subroutine, public cp_output_handling_openpmd::cp_openpmd_close_iterations |
Definition at line 805 of file cp_output_handling_openpmd.F.
| character(len=default_string_length) function, public cp_output_handling_openpmd::cp_openpmd_get_default_extension |
Definition at line 825 of file cp_output_handling_openpmd.F.