This module contains functions which handle writing messages/errors/warnings on screen, formatting headers, summary of the calculations and a few other supporting functions.
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
character(len=*), | private, | parameter | :: | letters | = | "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" | |
character(len=*), | private, | parameter | :: | lowercase | = | letters(27:) | |
character(len=*), | private, | parameter | :: | uppercase | = | letters(1:26) |
interface for the following message:
incorrect value encountered:
variable_name = variable_value
incorrect value encountered:
variable_name = variable_value
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | name_ |
name of the variable |
||
character(len=*), | intent(in) | :: | value_ |
value of the variable |
||
integer(kind=int32), | intent(in), | optional | :: | unit_ |
optional, unit where the message will be written |
incorrect value encountered:
variable_name = variable_value
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | name_ |
name of the variable |
||
integer(kind=int32), | intent(in) | :: | value_ |
value of the variable |
||
integer(kind=int32), | intent(in), | optional | :: | unit_ |
optional, unit where the message will be written |
incorrect value encountered:
variable_name = variable_value
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | name_ |
name of the variable |
||
real(kind=sp), | intent(in) | :: | value_ |
value of the variable |
||
integer(kind=int32), | intent(in), | optional | :: | unit_ |
optional, unit where the message will be written |
incorrect value encountered:
variable_name = variable_value
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | name_ |
name of the variable |
||
real(kind=dp), | intent(in) | :: | value_ |
value of the variable |
||
integer(kind=int32), | intent(in), | optional | :: | unit_ |
optional, unit where the message will be written |
Converts a floating-point number to a character string.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=dp), | intent(in) | :: | f |
input floating-point number |
||
character(len=*), | intent(in), | optional | :: | format_string |
Optional format string. |
Output character string.
transfers integer to a character
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | i |
input integer |
||
character(len=*), | intent(in), | optional | :: | format_string |
Optional format string. |
output character
forces lowercase on given string
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | str |
input string |
output (lowercase) string
forces lowercase on a single character
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=1), | intent(in) | :: | s |
input character |
output (lowercase) character
check the status after allocation
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=int32) | :: | istat_ |
result of stat=istat in (de)allocate |
|||
character(len=*), | intent(in) | :: | message_ |
a message to be written |
||
character(len=1), | intent(in) | :: | op_ |
'a' for allocation, 'd' for deallocation |
||
integer(kind=int32), | intent(in), | optional | :: | unit_ |
optional, unit where the message will be written |
check the status during various io operations on files
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=int32) | :: | istat_ |
result of iostat in open/read/write/close |
|||
character(len=*), | intent(in) | :: | iomsg_ |
result of iomsg in open/read/write/close |
||
integer(kind=int32), | intent(in) | :: | channel_ |
name of the file |
||
character(len=1), | intent(in) | :: | op_ |
'o' for opening of the file, 'r' for reading, 'w' for writing, 'c' for closing |
||
integer(kind=int32), | intent(in), | optional | :: | unit_ |
optional, unit where the message will be written |
print a short message that there are no open channels in given block
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=int32), | intent(in) | :: | block_number_ |
block number |
print the message about the time it took to complete a single task
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=dp), | intent(in) | :: | start_ |
initial time |
||
real(kind=dp), | intent(in) | :: | stop_ |
final time |
||
real(kind=dp), | intent(out) | :: | time_ |
stop_ - start_ |
||
character(len=*), | intent(in), | optional | :: | message_ |
(optional) a message to print instead of a default "Completed in ... s" |
writes an error message on a chosen unit
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | message_ |
a message to be written |
||
integer(kind=int32), | intent(in), | optional | :: | unit_ |
optional, unit where the message will be written |
writes headers on screen
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | header_type |
specifies the type of the header: 'main', 'input_read', 'input_check', 'input_summary', 'initialization', 'check_norm', 'save_basis', 'save_pes', 'radial_terms', 'save_radial_terms', 'reconstruction' |
||
integer(kind=int32), | intent(in), | optional | :: | opt_integer_ |
optional integer used in case "block" to pass jtot value |
writes a message on a chosen unit
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | message_ |
a message to be written |
||
integer(kind=int32), | intent(in), | optional | :: | unit_ |
optional, unit where the message will be written |
writes a warning message on a chosen unit
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | message_ |
a message to be written |
||
integer(kind=int32), | intent(in), | optional | :: | unit_ |
optional, unit where the message will be written |
incorrect value encountered:
variable_name = variable_value
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | name_ |
name of the variable |
||
character(len=*), | intent(in) | :: | value_ |
value of the variable |
||
integer(kind=int32), | intent(in), | optional | :: | unit_ |
optional, unit where the message will be written |
incorrect value encountered:
variable_name = variable_value
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | name_ |
name of the variable |
||
real(kind=dp), | intent(in) | :: | value_ |
value of the variable |
||
integer(kind=int32), | intent(in), | optional | :: | unit_ |
optional, unit where the message will be written |
incorrect value encountered:
variable_name = variable_value
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | name_ |
name of the variable |
||
integer(kind=int32), | intent(in) | :: | value_ |
value of the variable |
||
integer(kind=int32), | intent(in), | optional | :: | unit_ |
optional, unit where the message will be written |
incorrect value encountered:
variable_name = variable_value
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | name_ |
name of the variable |
||
real(kind=sp), | intent(in) | :: | value_ |
value of the variable |
||
integer(kind=int32), | intent(in), | optional | :: | unit_ |
optional, unit where the message will be written |