SCALE-RM
scale_precision.F90
Go to the documentation of this file.
1 !-------------------------------------------------------------------------------
13 #include "scalelib.h"
15  !-----------------------------------------------------------------------------
16  !
17  !++ used modules
18  !
19  !-----------------------------------------------------------------------------
20  implicit none
21  private
22  !-----------------------------------------------------------------------------
23  !
24  !++ Public procedure
25  !
26  !-----------------------------------------------------------------------------
27  !
28  !++ Public parameters & variables
29  !
30  !-----------------------------------------------------------------------------
31  integer, public, parameter :: sp = kind(0.0e0) ! Single Precision
32  integer, public, parameter :: dp = kind(0.0d0) ! Double Precision
33 
34  integer, public, parameter :: sp_prec = precision(0.e0)
35  integer, public, parameter :: dp_prec = precision(0.d0)
36 
37 #ifdef SINGLE
38  integer, public, parameter :: rp = sp ! single precision
39  integer, public, parameter :: rp_prec = sp_prec
40 #else
41  integer, public, parameter :: rp = dp ! double precision
42  integer, public, parameter :: rp_prec = dp_prec
43 #endif
44 
45  !-----------------------------------------------------------------------------
46  !
47  !++ Private procedure
48  !
49  !-----------------------------------------------------------------------------
50  !
51  !++ Private parameters & variables
52  !
53  !-----------------------------------------------------------------------------
54 end module scale_precision
scale_precision::sp
integer, parameter, public sp
Definition: scale_precision.F90:31
scale_precision::rp_prec
integer, parameter, public rp_prec
Definition: scale_precision.F90:42
scale_precision
module PRECISION
Definition: scale_precision.F90:14
scale_precision::rp
integer, parameter, public rp
Definition: scale_precision.F90:41
scale_precision::dp_prec
integer, parameter, public dp_prec
Definition: scale_precision.F90:35
scale_precision::dp
integer, parameter, public dp
Definition: scale_precision.F90:32
scale_precision::sp_prec
integer, parameter, public sp_prec
Definition: scale_precision.F90:34