This file renames the ISO input/output units to the standard UNIX names, defines the ANSI escape codes for colored output, and defines a number of auxiliary subroutines for e.g. writing out error and warning messages.
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
integer, | public | :: | stdin | = | input_unit | ||
integer, | public | :: | stdout | = | output_unit | ||
integer, | public | :: | stderr | = | error_unit | ||
character(len=*), | public, | parameter | :: | color_none | = | '[00m' | |
character(len=*), | public, | parameter | :: | color_red | = | '[31m' | |
character(len=*), | public, | parameter | :: | color_green | = | '[32m' | |
character(len=*), | public, | parameter | :: | color_yellow | = | '[33m' | |
character(len=*), | public, | parameter | :: | color_blue | = | '[34m' | |
character(len=*), | public, | parameter | :: | color_purple | = | '[35m' | |
character(len=*), | public, | parameter | :: | color_cyan | = | '[36m' | |
character(len=*), | public, | parameter | :: | color_white | = | '[37m' |
Dump numerical arrays to an output file.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | filename | |||
real(kind=real64), | intent(in), | dimension(:) | :: | arrays | ||
character(len=*), | intent(in), | dimension(:) | :: | header |
Dump a numerical result to an output file.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | filename | |||
real(kind=real64), | intent(in) | :: | scalar |
Open an input file for reading.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | file |
Open an output file for writing.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | file |
Provides a way to report a status message.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | msg |
Provides a way to report a warning message.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | msg |
Provides a way to report an error message and halt the program.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | msg |
Provides a way to write boxed status messages to standard out; in particular, this routine writes out a boxed title with a timestamp.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | title |
Provides a way to write boxed status messages to standard out; in particular, this routine writes out the name and value of a variable.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | title | |||
class(*), | intent(in) | :: | value |
Provides a way to write boxed status messages to standard out; in particular, this routine writes out the bottom edge of such a box.
Provides a way to write boxed status messages to standard out.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | title |
Dump numerical arrays to an output file.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | filename | |||
real(kind=real64), | intent(in), | dimension(:) | :: | arrays | ||
character(len=*), | intent(in), | dimension(:) | :: | header |
Dump a numerical result to an output file.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | filename | |||
real(kind=real64), | intent(in) | :: | scalar |