Portability Environment for Fortran poor people.
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
integer, | public | :: | endian | = | endianL |
Bit ordering: Little endian (endianL), or Big endian (endianB). |
|
logical, | public | :: | is_initialized | = | .false. |
Check the initialization of some variables that must be initialized. |
Overloading of the intrinsic bit_size function for computing the number of bits of (also) real and character variables.
Compute the number of digits in decimal base of the input integer.
Compute the number of digits in decimal base of the input integer.
use penf
print FI4P, digit(100_I8P)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=I8P), | intent(in) | :: | n |
Input integer. |
Number of digits.
Compute the number of digits in decimal base of the input integer.
use penf
print FI4P, digit(100_I4P)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=I4P), | intent(in) | :: | n |
Input integer. |
Number of digits.
Compute the number of digits in decimal base of the input integer.
use penf
print FI4P, digit(100_I2P)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=I2P), | intent(in) | :: | n |
Input integer. |
Number of digits.
Compute the number of digits in decimal base of the input integer.
use penf
print FI4P, digit(100_I1P)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=I1P), | intent(in) | :: | n |
Input integer. |
Number of digits.
Compute the number of digits in decimal base of the input integer.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=I8P), | intent(in) | :: | n |
Input integer. |
Number of digits.
Compute the number of digits in decimal base of the input integer.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=I4P), | intent(in) | :: | n |
Input integer. |
Number of digits.
Compute the number of digits in decimal base of the input integer.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=I2P), | intent(in) | :: | n |
Input integer. |
Number of digits.
Compute the number of digits in decimal base of the input integer.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=I1P), | intent(in) | :: | n |
Input integer. |
Number of digits.
Check the type of bit ordering (big or little endian) of the running architecture.
Initialize PENF’s variables that are not initialized into the definition specification.
Print to the specified unit the PENF’s environment data.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=I4P), | intent(in) | :: | unit |
Logic unit. |
||
character(len=*), | intent(in), | optional | :: | pref |
Prefixing string. |
|
integer(kind=I4P), | intent(out), | optional | :: | iostat |
IO error. |
|
character(len=*), | intent(out), | optional | :: | iomsg |
IO error message. |