removed public statement in derived data type causing trouble on older compilers
This commit is contained in:
parent
8f22d5a324
commit
49a964aeda
|
@ -44,7 +44,7 @@ real(pReal), parameter, public :: tol_gravityNodePos = 1.0e-100_pReal
|
||||||
real(pReal), parameter, public :: DAMASK_NaN = real(Z'7FF0000000000001', pReal)
|
real(pReal), parameter, public :: DAMASK_NaN = real(Z'7FF0000000000001', pReal)
|
||||||
#endif
|
#endif
|
||||||
type :: p_vec
|
type :: p_vec
|
||||||
real(pReal), dimension(:), pointer, public :: p
|
real(pReal), dimension(:), pointer :: p
|
||||||
end type p_vec
|
end type p_vec
|
||||||
|
|
||||||
CONTAINS
|
CONTAINS
|
||||||
|
@ -61,7 +61,7 @@ implicit none
|
||||||
write(6,'(a,i3)') ' Bytes for pReal: ',pReal
|
write(6,'(a,i3)') ' Bytes for pReal: ',pReal
|
||||||
write(6,'(a,i3)') ' Bytes for pInt: ',pInt
|
write(6,'(a,i3)') ' Bytes for pInt: ',pInt
|
||||||
write(6,'(a,i3)') ' Bytes for pLongInt: ',pLongInt
|
write(6,'(a,i3)') ' Bytes for pLongInt: ',pLongInt
|
||||||
write(6,'(a,e3.3)') ' NaN: ',DAMASK_NAN
|
write(6,'(a,e10.3)') ' NaN: ',DAMASK_NAN
|
||||||
write(6,'(a,l3)') ' NaN /= NaN: ',DAMASK_NaN/=DAMASK_NaN
|
write(6,'(a,l3)') ' NaN /= NaN: ',DAMASK_NaN/=DAMASK_NaN
|
||||||
if (DAMASK_NaN == DAMASK_NaN) call quit(9000)
|
if (DAMASK_NaN == DAMASK_NaN) call quit(9000)
|
||||||
write(6,*)
|
write(6,*)
|
||||||
|
|
|
@ -25,11 +25,11 @@
|
||||||
implicit none
|
implicit none
|
||||||
|
|
||||||
! *** Precision of real and integer variables ***
|
! *** Precision of real and integer variables ***
|
||||||
integer, parameter, public :: :: pReal = selected_real_kind(6,37) ! 6 significant digits, up to 1e+-37
|
integer, parameter, public :: pReal = selected_real_kind(6,37) ! 6 significant digits, up to 1e+-37
|
||||||
integer, parameter, public :: :: pInt = selected_int_kind(9) ! up to +- 1e9
|
integer, parameter, public :: pInt = selected_int_kind(9) ! up to +- 1e9
|
||||||
integer, parameter, public :: :: pLongInt = 4 ! should be 64bit
|
integer, parameter, public :: pLongInt = 4 ! should be 64bit
|
||||||
real(pReal), parameter, public :: :: tol_math_check = 1.0e-5_pReal
|
real(pReal), parameter, public :: tol_math_check = 1.0e-5_pReal
|
||||||
real(pReal), parameter, public :: :: tol_gravityNodePos = 1.0e-36_pReal
|
real(pReal), parameter, public :: tol_gravityNodePos = 1.0e-36_pReal
|
||||||
|
|
||||||
! NaN is precision dependent
|
! NaN is precision dependent
|
||||||
! from http://www.hpc.unimelb.edu.au/doc/f90lrm/dfum_035.html
|
! from http://www.hpc.unimelb.edu.au/doc/f90lrm/dfum_035.html
|
||||||
|
@ -44,7 +44,7 @@ real(pReal), parameter, public :: :: tol_gravityNodePos = 1.0e-36_pReal
|
||||||
real(pReal), parameter, public :: DAMASK_NaN = real(Z'7F800001', pReal)
|
real(pReal), parameter, public :: DAMASK_NaN = real(Z'7F800001', pReal)
|
||||||
#endif
|
#endif
|
||||||
type :: p_vec
|
type :: p_vec
|
||||||
real(pReal), dimension(:), pointer, public :: p
|
real(pReal), dimension(:), pointer :: p
|
||||||
end type p_vec
|
end type p_vec
|
||||||
|
|
||||||
CONTAINS
|
CONTAINS
|
||||||
|
@ -61,7 +61,7 @@ implicit none
|
||||||
write(6,'(a,i3)') ' Bytes for pReal: ',pReal
|
write(6,'(a,i3)') ' Bytes for pReal: ',pReal
|
||||||
write(6,'(a,i3)') ' Bytes for pInt: ',pInt
|
write(6,'(a,i3)') ' Bytes for pInt: ',pInt
|
||||||
write(6,'(a,i3)') ' Bytes for pLongInt: ',pLongInt
|
write(6,'(a,i3)') ' Bytes for pLongInt: ',pLongInt
|
||||||
write(6,'(a,e3.3)') ' NaN: ',DAMASK_NAN
|
write(6,'(a,e10.3)') ' NaN: ',DAMASK_NAN
|
||||||
write(6,'(a,l3)') ' NaN /= NaN: ',DAMASK_NaN/=DAMASK_NaN
|
write(6,'(a,l3)') ' NaN /= NaN: ',DAMASK_NaN/=DAMASK_NaN
|
||||||
if (DAMASK_NaN == DAMASK_NaN) call quit(9000)
|
if (DAMASK_NaN == DAMASK_NaN) call quit(9000)
|
||||||
write(6,*)
|
write(6,*)
|
||||||
|
|
Loading…
Reference in New Issue