PartMC  2.6.1
Functions/Subroutines
numeric_average.F90 File Reference

The numeric_average program. More...

Go to the source code of this file.

Functions/Subroutines

program numeric_average
 Compute the mean of a sequence of files containing numerical arrays, all of the same size. More...
 
real(kind=dp) function string_to_real (string)
 Convert a string to a real. More...
 
subroutine inout_tabs_to_spaces (line)
 Expand all tabs in a line into single spaces (one tab makes one space). More...
 
subroutine read_char_raw (unit, char, eol, eof)
 Read a single character from a file, signaling if we have hit EOL or EOF. If EOL or EOF are true then the character value should be ignored. A file containing a single line with a single character on it will first return the character with EOL and EOF both false, then will return with EOL true but EOF false, and finally will return with EOL false and EOF true. More...
 
subroutine read_word_raw (unit, word, eol, eof)
 Read a white-space delimited word from a file, signaling if we have EOL or EOF. If EOL or EOF are true then the word will still be meaningful data. If there was no data to be read then len(word) will be 0. More...
 

Detailed Description

The numeric_average program.

Definition in file numeric_average.F90.

Function/Subroutine Documentation

◆ inout_tabs_to_spaces()

subroutine numeric_average::inout_tabs_to_spaces ( character(len=*), intent(inout)  line)

Expand all tabs in a line into single spaces (one tab makes one space).

Parameters
[in,out]lineComplete input line.

Definition at line 129 of file numeric_average.F90.

◆ numeric_average()

program numeric_average

Compute the mean of a sequence of files containing numerical arrays, all of the same size.

Definition at line 10 of file numeric_average.F90.

◆ read_char_raw()

subroutine numeric_average::read_char_raw ( integer, intent(in)  unit,
character, intent(out)  char,
logical, intent(out)  eol,
logical, intent(out)  eof 
)

Read a single character from a file, signaling if we have hit EOL or EOF. If EOL or EOF are true then the character value should be ignored. A file containing a single line with a single character on it will first return the character with EOL and EOF both false, then will return with EOL true but EOF false, and finally will return with EOL false and EOF true.

Parameters
[in]unitUnit number to read from.
[out]charCharacter read.
[out]eolTrue if at EOL (end of line).
[out]eofTrue if at EOF (end of file).

Definition at line 152 of file numeric_average.F90.

◆ read_word_raw()

subroutine numeric_average::read_word_raw ( integer, intent(in)  unit,
character(len=*), intent(out)  word,
logical, intent(out)  eol,
logical, intent(out)  eof 
)

Read a white-space delimited word from a file, signaling if we have EOL or EOF. If EOL or EOF are true then the word will still be meaningful data. If there was no data to be read then len(word) will be 0.

Parameters
[in]unitUnit number to read from.
[out]wordWord read.
[out]eolTrue if at EOL (end of line).
[out]eofTrue if at EOF (end of file).

Definition at line 196 of file numeric_average.F90.

◆ string_to_real()

real(kind=dp) function numeric_average::string_to_real ( character(len=*), intent(in)  string)

Convert a string to a real.

Parameters
[in]stringString to convert.

Definition at line 107 of file numeric_average.F90.