PartMC  2.6.1
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. More...
 
subroutine pmc_spec_file::spec_file_assert_msg (code, file, condition_ok, msg)
 Exit with an error message containing filename and line number if condition_ok is .false. More...
 
subroutine pmc_spec_file::spec_file_open (filename, file)
 Open a spec file for reading. More...
 
subroutine pmc_spec_file::spec_file_close (file)
 Close a spec file. More...
 
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. More...
 
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). More...
 
subroutine pmc_spec_file::spec_file_read_line (file, line, eof)
 Read a spec_line from the spec_file. More...
 
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. More...
 
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. More...
 
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. More...
 
subroutine pmc_spec_file::spec_file_check_line_name (file, line, name)
 Check that the name of the line data is as given. More...
 
subroutine pmc_spec_file::spec_file_check_name (file, name, read_name)
 Checks that the read_name is the same as name. More...
 
subroutine pmc_spec_file::spec_file_check_line_length (file, line, length)
 Check that the length of the line data is as given. More...
 
subroutine pmc_spec_file::spec_file_check_read_iostat (file, ios, type)
 Check the IOSTAT and error if it is bad. More...
 
integer function pmc_spec_file::spec_file_string_to_integer (file, string)
 Convert a string to an integer. More...
 
real(kind=dp) function pmc_spec_file::spec_file_string_to_real (file, string)
 Convert a string to an real. More...
 
logical function pmc_spec_file::spec_file_string_to_logical (file, string)
 Convert a string to an logical. More...
 
subroutine pmc_spec_file::spec_file_read_integer (file, name, var)
 Read an integer from a spec file that must have the given name. More...
 
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. More...
 
subroutine pmc_spec_file::spec_file_read_logical (file, name, var)
 Read a logical from a spec file that must have a given name. More...
 
subroutine pmc_spec_file::spec_file_read_string (file, name, var)
 Read a string from a spec file that must have a given name. More...
 
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. More...
 
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. More...
 
subroutine pmc_spec_file::spec_file_read_timed_real_array (file, name, times, vals)
 Read an a time-indexed array of real data. More...
 

Variables

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

Detailed Description

The pmc_spec_file module.

Definition in file spec_file.F90.