33 INTEGER,
PARAMETER ::
sp = selected_real_kind(6, 30)
34 INTEGER,
PARAMETER ::
dp = selected_real_kind(14, 200)
40 INTEGER,
PARAMETER ::
real_4 = selected_real_kind(6, 30)
41 INTEGER,
PARAMETER ::
real_8 = selected_real_kind(14, 200)
45 INTEGER,
PARAMETER ::
int_1 = selected_int_kind(2)
48 INTEGER,
PARAMETER :: int_2 = selected_int_kind(4)
49 INTEGER,
PARAMETER ::
int_2_size = bit_size(int(0, int_2))/8
51 INTEGER,
PARAMETER ::
int_4 = selected_int_kind(5)
54 INTEGER,
PARAMETER ::
int_8 = selected_int_kind(10)
73 INTEGER,
INTENT(IN) :: iw
75 WRITE (iw,
'( /, T2, A )')
'DATA TYPE INFORMATION:'
77 WRITE (iw,
'( /,T2,A,T79,A,2(/,T2,A,T75,I6),3(/,T2,A,T67,E14.8) )') &
78 'REAL: Data type name:',
'dp',
' Kind value:', kind(0.0_dp), &
79 ' Precision:', precision(0.0_dp), &
80 ' Smallest non-negligible quantity relative to 1:', &
82 ' Smallest positive number:', tiny(0.0_dp), &
83 ' Largest representable number:', huge(0.0_dp)
84 WRITE (iw,
'( /,T2,A,T79,A,2(/,T2,A,T75,I6),3(/,T2,A,T67,E14.8) )') &
85 ' Data type name:',
'sp',
' Kind value:', kind(0.0_sp), &
86 ' Precision:', precision(0.0_sp), &
87 ' Smallest non-negligible quantity relative to 1:', &
89 ' Smallest positive number:', tiny(0.0_sp), &
90 ' Largest representable number:', huge(0.0_sp)
91 WRITE (iw,
'( /,T2,A,T72,A,4(/,T2,A,T61,I20) )') &
92 'INTEGER: Data type name:',
'(default)',
' Kind value:', &
94 ' Bit size:', bit_size(0), &
95 ' Largest representable number:', huge(0)
96 WRITE (iw,
'( /,T2,A,T72,A,/,T2,A,T75,I6,/ )') &
97 'LOGICAL: Data type name:',
'(default)', &
98 ' Kind value:', kind(.true.)
99 WRITE (iw,
'( /,T2,A,T72,A,/,T2,A,T75,I6,/ )') &
100 'CHARACTER: Data type name:',
'(default)', &
101 ' Kind value:', kind(
'C')
Defines the basic variable types.
integer, parameter, public max_line_length
character(len=1), dimension(2), parameter, public default_blank_character
integer, parameter, public int_8
integer, parameter, public dp_size
integer, parameter, public dp
integer, parameter, public int_4_size
integer, parameter, public default_string_length
integer, parameter, public int_1_size
integer, parameter, public sp_size
integer, parameter, public real_8_size
integer, parameter, public int_8_size
integer, parameter, public real_4_size
integer, parameter, public real_4
integer, parameter, public int_2_size
integer, parameter, public int_size
integer, parameter, public int_1
integer, parameter, public default_path_length
integer, parameter, public sp
integer, parameter, public real_8
subroutine, public print_kind_info(iw)
Print informations about the used data types.
integer, parameter, public int_4