SCALE-RM
scale_precision.F90
Go to the documentation of this file.
1 !-------------------------------------------------------------------------------
14  !-----------------------------------------------------------------------------
15  !
16  !++ used modules
17  !
18  use dc_types, only: &
19  dc_sp => sp, &
20  dc_dp => dp
21  !-----------------------------------------------------------------------------
22  implicit none
23  private
24  !-----------------------------------------------------------------------------
25  !
26  !++ Public procedure
27  !
28  !-----------------------------------------------------------------------------
29  !
30  !++ Public parameters & variables
31  !
32  !-----------------------------------------------------------------------------
33  integer, public, parameter :: sp = dc_sp ! Single Precision: kind(0.E0)
34  integer, public, parameter :: dp = dc_dp ! Double Precision: kind(0.D0)
35 #ifdef SINGLE
36  integer, public, parameter :: rp = sp ! single precision
37 #else
38  integer, public, parameter :: rp = dp ! double precision
39 #endif
40  !
41  !-----------------------------------------------------------------------------
42  !++ Private procedure
43  !
44  !-----------------------------------------------------------------------------
45  !
46  !++ Private parameters & variables
47  !
48  !-----------------------------------------------------------------------------
49 end module scale_precision
50 !-------------------------------------------------------------------------------
integer, parameter, public dp
Definition: dc_types.f90:27
integer, parameter, public sp
Definition: dc_types.f90:30
module PRECISION
integer, parameter, public rp