more portable way to define PI

https://software.intel.com/en-us/forums/intel-visual-fortran-compiler-for-windows/topic/490432
and compiler will not complain about truncation
This commit is contained in:
Martin Diehl 2018-08-26 11:40:38 +02:00
parent a463888156
commit 241b2ade8b
2 changed files with 2 additions and 2 deletions

@ -1 +1 @@
Subproject commit 81fd7109fea8456b8eecaaef0eec041edcce7792
Subproject commit a764ade044735df35fac93a5204446291ee29abc

View File

@ -12,7 +12,7 @@ module math
implicit none
private
real(pReal), parameter, public :: PI = 3.141592653589793_pReal !< ratio of a circle's circumference to its diameter
real(pReal), parameter, public :: PI = acos(-1.0_pReal) !< ratio of a circle's circumference to its diameter
real(pReal), parameter, public :: INDEG = 180.0_pReal/PI !< conversion from radian into degree
real(pReal), parameter, public :: INRAD = PI/180.0_pReal !< conversion from degree into radian
complex(pReal), parameter, public :: TWOPIIMG = (0.0_pReal,2.0_pReal)*(PI,0.0_pReal) !< Re(0.0), Im(2xPi)