PartMC
2.2.0
|
A single line of formatted test for input. More...
Data Types | |
type | spec_line_t |
A single line of input data, split at whitespace. More... | |
Public Member Functions | |
subroutine | spec_line_allocate (spec_line) |
Allocates memory for a spec_line. | |
subroutine | spec_line_allocate_size (spec_line, n_data) |
Allocates memory for a spec_line of the given size. | |
subroutine | spec_line_deallocate (spec_line) |
Frees all storage. | |
subroutine | spec_line_copy (from_spec_line, to_spec_line) |
Copies a spec_line. | |
subroutine | spec_line_strip_comment (string) |
Strip the comments from a string. Comments are everything after the first # character. | |
subroutine | spec_line_tabs_to_spaces (string) |
Expand all tabs in a string into single spaces (one tab makes one space). | |
subroutine | spec_line_strip_leading_spaces (string) |
Strip leading spaces from a string. | |
Public Attributes | |
integer, parameter | SPEC_LINE_MAX_LEN = 10000 |
Maximum size of a single line. | |
integer, parameter | SPEC_LINE_MAX_VAR_LEN = 300 |
Maximum size of a variable. |
A single line of formatted test for input.
Definition at line 9 of file spec_line.F90.
subroutine pmc_spec_line::spec_line_allocate | ( | type(spec_line_t), intent(out) | spec_line | ) |
Allocates memory for a spec_line.
[out] | spec_line | Struct to alloc. |
Definition at line 39 of file spec_line.F90.
subroutine pmc_spec_line::spec_line_allocate_size | ( | type(spec_line_t), intent(out) | spec_line, |
integer, intent(in) | n_data | ||
) |
Allocates memory for a spec_line of the given size.
[out] | spec_line | Struct to alloc. |
[in] | n_data | Number of data items. |
Definition at line 51 of file spec_line.F90.
subroutine pmc_spec_line::spec_line_copy | ( | type(spec_line_t), intent(in) | from_spec_line, |
type(spec_line_t), intent(inout) | to_spec_line | ||
) |
Copies a spec_line.
[in] | from_spec_line | Original spec_line. |
[in,out] | to_spec_line | Destination, already alloced. |
Definition at line 77 of file spec_line.F90.
subroutine pmc_spec_line::spec_line_deallocate | ( | type(spec_line_t), intent(inout) | spec_line | ) |
Frees all storage.
[in,out] | spec_line | Struct to free. |
Definition at line 65 of file spec_line.F90.
subroutine pmc_spec_line::spec_line_strip_comment | ( | character(len=*), intent(inout) | string | ) |
Strip the comments from a string. Comments are everything after the first # character.
[in,out] | string | Complete input string. |
Definition at line 98 of file spec_line.F90.
subroutine pmc_spec_line::spec_line_strip_leading_spaces | ( | character(len=*), intent(inout) | string | ) |
Strip leading spaces from a string.
[in,out] | string | Complete input string. |
Definition at line 134 of file spec_line.F90.
subroutine pmc_spec_line::spec_line_tabs_to_spaces | ( | character(len=*), intent(inout) | string | ) |
Expand all tabs in a string into single spaces (one tab makes one space).
[in,out] | string | Complete input string. |
Definition at line 116 of file spec_line.F90.
integer, parameter pmc_spec_line::SPEC_LINE_MAX_LEN = 10000 |
Maximum size of a single line.
Definition at line 14 of file spec_line.F90.
integer, parameter pmc_spec_line::SPEC_LINE_MAX_VAR_LEN = 300 |
Maximum size of a variable.
Definition at line 16 of file spec_line.F90.