src/inout.f90 File Reference

The pmc_inout module. More...

Classes

struct  pmc_inout::inout_file_t
 An input file with extra data for printing messages. More...
struct  pmc_inout::inout_line_t
 A single line of input data, split at whitespace. More...

Namespaces

namespace  pmc_inout
 

Reading formatted text input.


Functions

subroutine pmc_inout::inout_open_read (filename, file)
 Open an inout file for reading.
subroutine pmc_inout::inout_open_write (filename, file)
 Open an inout file for writing.
subroutine pmc_inout::inout_close (file)
 Close an inout file.
subroutine pmc_inout::inout_line_alloc (n_data, inout_line)
 Allocates memory for an inout_line.
subroutine pmc_inout::inout_line_free (inout_line)
 Frees all storage.
subroutine pmc_inout::inout_line_copy (from_line, to_line)
 Copies a inout_line.
subroutine pmc_inout::inout_read_line_raw (file, line, eof)
 Read a single line from a inout file, signaling if we have hit EOF.
subroutine pmc_inout::inout_strip_comment (line)
 Strip the comments from a line. Comments are everything after the first # character.
subroutine pmc_inout::inout_tabs_to_spaces (line)
 Expand all tabs in a line into single spaces (one tab makes one space).
subroutine pmc_inout::inout_strip_leading_spaces (line)
 Strip leading spaces from a string.
subroutine pmc_inout::inout_read_next_data_line (file, line, eof)
 Read the next line from the inout file that contains useful data (stripping comments and blank lines).
subroutine pmc_inout::inout_read_line (file, line, eof)
 Read a inout_line from the inout_file.
subroutine pmc_inout::inout_read_line_no_eof (file, line)
 Read a inout_line from the inout_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_inout::inout_read_line_list (file, max_lines, line_list)
 Read a list of inout_lines from a file, stopping at max_lines or EOF, whichever comes first.
subroutine pmc_inout::inout_read_line_array (file, max_lines, line_array)
 Read an array of inout_lines from a file, stopping at max_lines or EOF. All lines must have the same number of elements.
subroutine pmc_inout::inout_check_line_name (file, line, name)
 Check that the name of the line data is as given.
subroutine pmc_inout::inout_check_name (file, name, read_name)
 Checks that the read_name is the same as name.
subroutine pmc_inout::inout_check_line_length (file, line, length)
 Check that the length of the line data is as given.
subroutine pmc_inout::inout_check_read_iostat (file, ios, type)
 Check the IOSTAT and error if it is bad.
integer pmc_inout::inout_string_to_integer (file, string)
 Convert a string to an integer.
real *8 pmc_inout::inout_string_to_real (file, string)
 Convert a string to an real.
logical pmc_inout::inout_string_to_logical (file, string)
 Convert a string to an logical.
subroutine pmc_inout::inout_read_integer (file, name, var)
 Read an integer from a inout file that must have the given name.
subroutine pmc_inout::inout_read_real (file, name, var)
 Read a real number from a inout file that must have the given name.
subroutine pmc_inout::inout_read_logical (file, name, var)
 Read a logical from a inout file that must have a given name.
subroutine pmc_inout::inout_read_string (file, name, var)
 Read a string from a inout file that must have a given name.
subroutine pmc_inout::inout_read_complex (file, name, var)
 Read a complex number from a inout file that must have the given name.
subroutine pmc_inout::inout_check_index (file, index, check_index)
 Check that indices are equal as expected.
subroutine pmc_inout::inout_read_indexed_integer (file, index, var)
 Read an integer from a inout file that must have the given index.
subroutine pmc_inout::inout_read_indexed_real (file, index, var)
 Read a real from a inout file that must have the given index.
subroutine pmc_inout::inout_read_indexed_logical (file, index, var)
 Read a logical from a inout file that must have a given index.
subroutine pmc_inout::inout_read_indexed_string (file, index, var)
 Read a string from a inout file that must have a given index.
subroutine pmc_inout::inout_read_indexed_2d_real (file, index1, index2, var)
 Read a real from a inout file that must have the given indices.
subroutine pmc_inout::inout_read_integer_array (file, name, vals)
 Read an integer array.
subroutine pmc_inout::inout_read_real_array (file, name, vals)
 Read a real array.
subroutine pmc_inout::inout_read_logical_array (file, name, vals)
 Read a logical array.
subroutine pmc_inout::inout_read_string_array (file, name, vals)
 Read a string array.
subroutine pmc_inout::inout_read_real_array_2d (file, name, vals)
 Read a real 2d array.
subroutine pmc_inout::inout_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_inout::inout_read_timed_real_array (file, line_name, name, times, vals)
 Read an a time-indexed array of real data.
subroutine pmc_inout::inout_write_comment (file, comment)
 Write a comment string to an inout file.
subroutine pmc_inout::inout_check_comment (file, comment)
 Write a comment string to an inout file.
subroutine pmc_inout::inout_write_integer (file, name, var)
 Write an integer to an inout file.
subroutine pmc_inout::inout_write_real (file, name, var)
 Write a real to an inout file.
subroutine pmc_inout::inout_write_logical (file, name, var)
 Write a logical to an inout file.
subroutine pmc_inout::inout_write_string (file, name, var)
 Write a string to an inout file.
subroutine pmc_inout::inout_write_complex (file, name, var)
 Write a complex to an inout file.
subroutine pmc_inout::inout_write_indexed_integer (file, name, index, var)
 Write an integer to an inout file.
subroutine pmc_inout::inout_write_indexed_real (file, name, index, var)
 Write a real to an inout file.
subroutine pmc_inout::inout_write_indexed_logical (file, name, index, var)
 Write a logical to an inout file.
subroutine pmc_inout::inout_write_indexed_string (file, name, index, var)
 Write a string to an inout file.
subroutine pmc_inout::inout_write_indexed_complex (file, name, index, var)
 Write a complex to an inout file.
subroutine pmc_inout::inout_write_unnamed_real (file, var)
 Write a real to an inout file.
subroutine pmc_inout::inout_write_integer_array (file, name, vals)
 Write an integer array.
subroutine pmc_inout::inout_write_real_array (file, name, vals)
 Write a real array.
subroutine pmc_inout::inout_write_logical_array (file, name, vals)
 Write a logical array.
subroutine pmc_inout::inout_write_string_array (file, name, vals)
 Write a character array.
subroutine pmc_inout::inout_write_real_array_2d (file, name, vals)
 Write a real 2d array.

Variables

integer, parameter pmc_inout::MAX_LINE_LEN = 10000
 Maximum size of a single line.
integer, parameter pmc_inout::MAX_VAR_LEN = 300
 Maximum size of a variable.
integer, parameter pmc_inout::MAX_LIST_LINES = 1000
 Maximum number of lines in an array.

Detailed Description

The pmc_inout module.


Generated on 29 Mar 2010 for PartMC by  doxygen 1.6.1