2009-08-31 20:39:15 +05:30
|
|
|
!* $Id$
|
2007-03-20 19:25:22 +05:30
|
|
|
!##############################################################
|
|
|
|
MODULE prec
|
|
|
|
!##############################################################
|
|
|
|
|
|
|
|
implicit none
|
2009-06-15 18:41:21 +05:30
|
|
|
|
2007-03-29 12:45:12 +05:30
|
|
|
! *** Precision of real and integer variables ***
|
2009-06-09 16:35:29 +05:30
|
|
|
integer, parameter :: pReal = selected_real_kind(15,300) ! 15 significant digits, up to 1e+-300
|
|
|
|
integer, parameter :: pInt = selected_int_kind(9) ! up to +- 1e9
|
|
|
|
integer, parameter :: pLongInt = 8 ! should be 64bit
|
2011-02-25 18:11:46 +05:30
|
|
|
real(pReal), parameter :: tol_math_check = 1.0e-8_pReal
|
|
|
|
real(pReal), parameter :: tol_gravityNodePos = 1.0e-100_pReal
|
|
|
|
|
2009-03-04 17:18:54 +05:30
|
|
|
type :: p_vec
|
|
|
|
real(pReal), dimension(:), pointer :: p
|
|
|
|
end type p_vec
|
2007-03-20 19:25:22 +05:30
|
|
|
|
2009-08-31 20:39:15 +05:30
|
|
|
CONTAINS
|
|
|
|
|
|
|
|
subroutine prec_init
|
2011-02-25 18:11:46 +05:30
|
|
|
implicit none
|
|
|
|
|
2009-08-31 20:39:15 +05:30
|
|
|
write(6,*)
|
|
|
|
write(6,*) '<<<+- prec init -+>>>'
|
|
|
|
write(6,*) '$Id$'
|
|
|
|
write(6,*)
|
|
|
|
return
|
|
|
|
end subroutine
|
|
|
|
|
|
|
|
|
2007-03-20 19:25:22 +05:30
|
|
|
END MODULE prec
|