PartMC  2.6.1
Data Types | Functions/Subroutines | Variables
pmc_spec_line Module Reference

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...
 

Functions/Subroutines

subroutine spec_line_set_size (spec_line, n_data)
 Sets the number of data elements in the line. More...
 
subroutine spec_line_strip_comment (string)
 Strip the comments from a string. Comments are everything after the first # character. More...
 
subroutine spec_line_tabs_to_spaces (string)
 Expand all tabs in a string into single spaces (one tab makes one space). More...
 
subroutine spec_line_strip_leading_spaces (string)
 Strip leading spaces from a string. More...
 

Variables

integer, parameter spec_line_max_len = 10000
 Maximum size of a single line. More...
 
integer, parameter spec_line_max_var_len = 300
 Maximum size of a variable. More...
 

Detailed Description

A single line of formatted test for input.

Function/Subroutine Documentation

◆ spec_line_set_size()

subroutine pmc_spec_line::spec_line_set_size ( type(spec_line_t), intent(inout)  spec_line,
integer, intent(in)  n_data 
)

Sets the number of data elements in the line.

Parameters
[in,out]spec_lineStruct to alloc.
[in]n_dataNumber of data items.

Definition at line 39 of file spec_line.F90.

◆ spec_line_strip_comment()

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.

Parameters
[in,out]stringComplete input string.

Definition at line 56 of file spec_line.F90.

◆ spec_line_strip_leading_spaces()

subroutine pmc_spec_line::spec_line_strip_leading_spaces ( character(len=*), intent(inout)  string)

Strip leading spaces from a string.

Parameters
[in,out]stringComplete input string.

Definition at line 92 of file spec_line.F90.

◆ spec_line_tabs_to_spaces()

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).

Parameters
[in,out]stringComplete input string.

Definition at line 74 of file spec_line.F90.

Variable Documentation

◆ spec_line_max_len

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.

◆ spec_line_max_var_len

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.