DCS
a Driven-Cavity Open source Simulator code
 All Classes Files Functions Variables Groups Pages
IR_Precision

Portable kind-parameters module. More...

+ Collaboration diagram for IR_Precision:

Data Types

interface  ir_precision::bit_size
 Overloading of the intrinsic "bit_size" function for computing the number of bits of (also) real and character variables; variable, intent(IN):: n input; integer(I1P), intent(OUT):: bits output number of bits of input number. More...
 
interface  ir_precision::byte_size
 Overloading of the "byte_size" function for computing the number of bytes. More...
 
interface  ir_precision::str
 Procedure for converting number, real and integer, to string (number to string type casting); logical, intent(IN), optional:: no_sign flag for do not write sign; number, intent(IN):: n input number; string, intent(OUT):: str output string. More...
 
interface  ir_precision::strz
 Procedure for converting number, integer, to string, prefixing with the right number of zeros (number to string type casting with zero padding); number, intent(IN), optional:: no_zpad number of padding zeros; number, intent(IN):: n input number; string, intent(OUT):: str output string. More...
 
interface  ir_precision::cton
 Procedure for converting string to number, real or initeger, (string to number type casting); string, intent(IN):: str input string; number, intent(OUT):: n output number. More...
 
interface  ir_precision::bstr
 Procedure for converting number, real and integer, to bit-string (number to bit-string type casting); number, intent(IN):: n input number; string, intent(OUT):: bstr output bit-string. More...
 
interface  ir_precision::bcton
 Procedure for converting bit-string to number, real or initeger, (bit-string to number type casting); string, intent(IN):: bstr input bit-string; number, intent(OUT):: n output number. More...
 

Detailed Description

Portable kind-parameters module.


Data Type Documentation

interface ir_precision::bit_size

Overloading of the intrinsic "bit_size" function for computing the number of bits of (also) real and character variables; variable, intent(IN):: n input; integer(I1P), intent(OUT):: bits output number of bits of input number.

Definition at line 249 of file IR_Precision.f90.

interface ir_precision::byte_size

Overloading of the "byte_size" function for computing the number of bytes.

Definition at line 260 of file IR_Precision.f90.

Private Member Functions

elemental integer(i1p) function byte_size_i8p (i)
 Procedure for computing the number of bytes of an integer variable. More...
 
elemental integer(i1p) function byte_size_i4p (i)
 Procedure for computing the number of bytes of an integer variable. More...
 
elemental integer(i1p) function byte_size_i2p (i)
 Procedure for computing the number of bytes of an integer variable. More...
 
elemental integer(i1p) function byte_size_i1p (i)
 Procedure for computing the number of bytes of an integer variable. More...
 

Member Function/Subroutine Documentation

elemental integer(i1p) function ir_precision::byte_size::byte_size_i8p ( integer(i8p), intent(in)  i)
private

Procedure for computing the number of bytes of an integer variable.

Parameters
[in]iInteger variable whose number of bytes must be computed.

Definition at line 450 of file IR_Precision.f90.

elemental integer(i1p) function ir_precision::byte_size::byte_size_i4p ( integer(i4p), intent(in)  i)
private

Procedure for computing the number of bytes of an integer variable.

Parameters
[in]iInteger variable whose number of bytes must be computed.

Definition at line 464 of file IR_Precision.f90.

elemental integer(i1p) function ir_precision::byte_size::byte_size_i2p ( integer(i2p), intent(in)  i)
private

Procedure for computing the number of bytes of an integer variable.

Parameters
[in]iInteger variable whose number of bytes must be computed.

Definition at line 478 of file IR_Precision.f90.

elemental integer(i1p) function ir_precision::byte_size::byte_size_i1p ( integer(i1p), intent(in)  i)
private

Procedure for computing the number of bytes of an integer variable.

Parameters
[in]iInteger variable whose number of bytes must be computed.

Definition at line 492 of file IR_Precision.f90.

interface ir_precision::str

Procedure for converting number, real and integer, to string (number to string type casting); logical, intent(IN), optional:: no_sign flag for do not write sign; number, intent(IN):: n input number; string, intent(OUT):: str output string.

Definition at line 278 of file IR_Precision.f90.

interface ir_precision::strz

Procedure for converting number, integer, to string, prefixing with the right number of zeros (number to string type casting with zero padding); number, intent(IN), optional:: no_zpad number of padding zeros; number, intent(IN):: n input number; string, intent(OUT):: str output string.

Definition at line 296 of file IR_Precision.f90.

Private Member Functions

elemental character(di8p) function strz_i8p (nz_pad, n)
 Procedure for converting integer to string, prefixing with the right number of zeros. More...
 
elemental character(di4p) function strz_i4p (nz_pad, n)
 Procedure for converting integer to string, prefixing with the right number of zeros. More...
 
elemental character(di2p) function strz_i2p (nz_pad, n)
 Procedure for converting integer to string, prefixing with the right number of zeros. More...
 
elemental character(di1p) function strz_i1p (nz_pad, n)
 Procedure for converting integer to string, prefixing with the right number of zeros. More...
 

Member Function/Subroutine Documentation

elemental character(di8p) function ir_precision::strz::strz_i8p ( integer(i4p), intent(in), optional  nz_pad,
integer(i8p), intent(in)  n 
)
private

Procedure for converting integer to string, prefixing with the right number of zeros.

This function achieves casting of integer to string.

Parameters
[in]nz_padNumber of zeros padding.
[in]nInteger to be converted.

Definition at line 791 of file IR_Precision.f90.

elemental character(di4p) function ir_precision::strz::strz_i4p ( integer(i4p), intent(in), optional  nz_pad,
integer(i4p), intent(in)  n 
)
private

Procedure for converting integer to string, prefixing with the right number of zeros.

This function achieves casting of integer to string.

Parameters
[in]nz_padNumber of zeros padding.
[in]nInteger to be converted.

Definition at line 809 of file IR_Precision.f90.

elemental character(di2p) function ir_precision::strz::strz_i2p ( integer(i4p), intent(in), optional  nz_pad,
integer(i2p), intent(in)  n 
)
private

Procedure for converting integer to string, prefixing with the right number of zeros.

This function achieves casting of integer to string.

Parameters
[in]nz_padNumber of zeros padding.
[in]nInteger to be converted.

Definition at line 827 of file IR_Precision.f90.

elemental character(di1p) function ir_precision::strz::strz_i1p ( integer(i4p), intent(in), optional  nz_pad,
integer(i1p), intent(in)  n 
)
private

Procedure for converting integer to string, prefixing with the right number of zeros.

This function achieves casting of integer to string.

Parameters
[in]nz_padNumber of zeros padding.
[in]nInteger to be converted.

Definition at line 845 of file IR_Precision.f90.

interface ir_precision::cton

Procedure for converting string to number, real or initeger, (string to number type casting); string, intent(IN):: str input string; number, intent(OUT):: n output number.

Definition at line 306 of file IR_Precision.f90.

interface ir_precision::bstr

Procedure for converting number, real and integer, to bit-string (number to bit-string type casting); number, intent(IN):: n input number; string, intent(OUT):: bstr output bit-string.

Definition at line 322 of file IR_Precision.f90.

interface ir_precision::bcton

Procedure for converting bit-string to number, real or initeger, (bit-string to number type casting); string, intent(IN):: bstr input bit-string; number, intent(OUT):: n output number.

Definition at line 338 of file IR_Precision.f90.