removed public statement in derived data type causing trouble on older compilers

This commit is contained in:
Martin Diehl 2012-02-14 13:56:35 +00:00
parent 8f22d5a324
commit 49a964aeda
2 changed files with 9 additions and 9 deletions

View File

@ -44,7 +44,7 @@ real(pReal), parameter, public :: tol_gravityNodePos = 1.0e-100_pReal
real(pReal), parameter, public :: DAMASK_NaN = real(Z'7FF0000000000001', pReal)
#endif
type :: p_vec
real(pReal), dimension(:), pointer, public :: p
real(pReal), dimension(:), pointer :: p
end type p_vec
CONTAINS
@ -61,7 +61,7 @@ implicit none
write(6,'(a,i3)') ' Bytes for pReal: ',pReal
write(6,'(a,i3)') ' Bytes for pInt: ',pInt
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
if (DAMASK_NaN == DAMASK_NaN) call quit(9000)
write(6,*)

View File

@ -25,11 +25,11 @@
implicit none
! *** 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 :: :: pInt = selected_int_kind(9) ! up to +- 1e9
integer, parameter, public :: :: pLongInt = 4 ! should be 64bit
real(pReal), parameter, public :: :: tol_math_check = 1.0e-5_pReal
real(pReal), parameter, public :: :: tol_gravityNodePos = 1.0e-36_pReal
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 :: pLongInt = 4 ! should be 64bit
real(pReal), parameter, public :: tol_math_check = 1.0e-5_pReal
real(pReal), parameter, public :: tol_gravityNodePos = 1.0e-36_pReal
! NaN is precision dependent
! 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)
#endif
type :: p_vec
real(pReal), dimension(:), pointer, public :: p
real(pReal), dimension(:), pointer :: p
end type p_vec
CONTAINS
@ -61,7 +61,7 @@ implicit none
write(6,'(a,i3)') ' Bytes for pReal: ',pReal
write(6,'(a,i3)') ' Bytes for pInt: ',pInt
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
if (DAMASK_NaN == DAMASK_NaN) call quit(9000)
write(6,*)