Definition of the basic kind values and some basic constants.
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
integer, | public, | parameter | :: | sp | = | selected_real_kind(5, 30) | Single precision floating point. |
integer, | public, | parameter | :: | dp | = | selected_real_kind(9, 99) | Double precision floating point. |
integer, | public, | parameter | :: | qp | = | selected_real_kind(20, 199) | Quad precision floating point. |
integer, | public, | parameter | :: | wp | = | dp | The working precsion. |
integer, | public, | parameter | :: | ip | = | selected_int_kind(8) | 32 bit integers. |
real(kind=wp), | public, | dimension(2:1) | :: | empty | Empty floating point array used to initialize variables to either the min or max value of kind wp. |
||
integer(kind=ip), | public, | dimension(2:1) | :: | iempty | Empty integer array used to initialize variables to either the min or max value of kind ip. |
||
real(kind=wp), | public, | parameter | :: | rzero | = | 0.0_wp | Zero real type constant. |
complex(kind=wp), | public, | parameter | :: | czero | = | cmplx(0.0_wp, 0.0_wp, wp) | Zero complex type constant. |
integer(kind=ip), | public, | parameter | :: | izero | = | 0_ip | Zero integer type constant. |
complex(kind=wp), | public, | parameter | :: | zi | = | cmplx(0.0_wp, 1.0_wp, wp) | The imaginary unit. |