PartMC 2.1.4
Data Types | Modules | Functions/Subroutines | Variables
spec_file.F90 File Reference

The pmc_spec_file module. More...

Go to the source code of this file.

Data Types

type  pmc_spec_file::spec_file_t
 An input file with extra data for printing messages. More...

Modules

module  pmc_spec_file
 

Reading formatted text input.


Functions/Subroutines

subroutine pmc_spec_file::spec_file_die_msg (code, file, msg)
 Exit with an error message containing filename and line number.
subroutine pmc_spec_file::spec_file_open (filename, file)
 Open a spec file for reading.
subroutine pmc_spec_file::spec_file_close (file)
 Close a spec file.
subroutine pmc_spec_file::spec_file_read_line_raw (file, line, eof)
 Read a single line from a spec file, signaling if we have hit EOF.
subroutine pmc_spec_file::spec_file_read_next_data_line (file, line, eof)
 Read the next line from the spec file that contains useful data (stripping comments and blank lines).
subroutine pmc_spec_file::spec_file_read_line (file, line, eof)
 Read a spec_line from the spec_file.
subroutine pmc_spec_file::spec_file_read_line_no_eof (file, line)
 Read a spec_line from the spec_file. This will always succeed or error out, so should only be called if we know there should be a valid line coming.
subroutine pmc_spec_file::spec_file_read_line_list (file, max_lines, line_list)
 Read a list of spec_lines from a file, stopping at max_lines or EOF, whichever comes first.
subroutine pmc_spec_file::spec_file_read_line_array (file, max_lines, line_array)
 Read an array of spec_lines from a file, stopping at max_lines or EOF. All lines must have the same number of elements.
subroutine pmc_spec_file::spec_file_check_line_name (file, line, name)
 Check that the name of the line data is as given.
subroutine pmc_spec_file::spec_file_check_name (file, name, read_name)
 Checks that the read_name is the same as name.
subroutine pmc_spec_file::spec_file_check_line_length (file, line, length)
 Check that the length of the line data is as given.
subroutine pmc_spec_file::spec_file_check_read_iostat (file, ios, type)
 Check the IOSTAT and error if it is bad.
integer pmc_spec_file::spec_file_string_to_integer (file, string)
 Convert a string to an integer.
real(kind=dp) pmc_spec_file::spec_file_string_to_real (file, string)
 Convert a string to an real.
logical pmc_spec_file::spec_file_string_to_logical (file, string)
 Convert a string to an logical.
subroutine pmc_spec_file::spec_file_read_integer (file, name, var)
 Read an integer from a spec file that must have the given name.
subroutine pmc_spec_file::spec_file_read_real (file, name, var)
 Read a real number from a spec file that must have the given name.
subroutine pmc_spec_file::spec_file_read_logical (file, name, var)
 Read a logical from a spec file that must have a given name.
subroutine pmc_spec_file::spec_file_read_string (file, name, var)
 Read a string from a spec file that must have a given name.
subroutine pmc_spec_file::spec_file_read_complex (file, name, var)
 Read a complex number from a spec file that must have the given name.
subroutine pmc_spec_file::spec_file_read_real_named_array (file, max_lines, names, vals)
 Read an array of named lines with real data. All lines must have the same number of data elements.
subroutine pmc_spec_file::spec_file_read_timed_real_array (file, name, times, vals)
 Read an a time-indexed array of real data.

Variables

integer, parameter pmc_spec_file::SPEC_FILE_MAX_LIST_LINES = 1000
 Maximum number of lines in an array.

Detailed Description

The pmc_spec_file module.

Definition in file spec_file.F90.