9 use,
intrinsic :: iso_fortran_env, only: i4b => int32, &
28 integer(I4B),
intent(in) :: iout
30 integer(LGP) :: ldum = 0
31 integer(I4B) :: idum = 0
32 integer(I8B) :: long_idum = 0
33 integer(DP) :: irdum = 0
34 real(dp) :: rdum = 0._dp
37 write (iout,
'(/a)')
'Real Variables'
38 write (iout,
'(2x,a,i0)')
'KIND: ', dp
39 write (iout,
'(2x,a,1pg15.6)')
'TINY (smallest non-zero value): ', &
41 write (iout,
'(2x,a,1pg15.6)')
'HUGE (largest value): ', huge(rdum)
42 write (iout,
'(2x,a,i0)')
'PRECISION: ', precision(rdum)
43 write (iout,
'(2x,a,i0)')
'SIZE IN BITS: ', bit_size(irdum)
45 write (iout,
'(/a)')
'Integer Variables'
46 write (iout,
'(2x,a,i0)')
'KIND: ', i4b
47 write (iout,
'(2x,a,i0)')
'HUGE (largest value): ', huge(idum)
48 write (iout,
'(2x,a,i0)')
'SIZE IN BITS: ', bit_size(idum)
50 write (iout,
'(/a)')
'Long Integer Variables'
51 write (iout,
'(2x,a,i0)')
'KIND: ', i8b
52 write (iout,
'(2x,a,i0)')
'HUGE (largest value): ', huge(long_idum)
53 write (iout,
'(2x,a,i0)')
'SIZE IN BITS: ', bit_size(long_idum)
55 write (iout,
'(/a)')
'Logical Variables'
56 write (iout,
'(2x,a,i0)')
'KIND: ', lgp
57 write (iout,
'(2x,a,i0)')
'SIZE IN BITS: ', bit_size(ldum)
This module defines variable data types.
subroutine, public write_kindinfo(iout)
Write variable data types.