Changes from trunk/src/erf.f90 at r4 to branches/FLEXPART_9.1.3/src/erf.f90 at r13
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/FLEXPART_9.1.3/src/erf.f90
- Property svn:executable deleted
r4 r13 42 42 43 43 integer :: j 44 real :: x,tmp,ser,xx,gammln45 real :: cof(6) = (/ &44 real(kind=dp) :: x,tmp,ser,xx,gammln 45 real(KIND=dp) :: cof(6) = (/ & 46 46 76.18009173_dp, -86.50532033_dp, 24.01409822_dp, & 47 47 -1.231739516_dp, .120858003e-2_dp, -.536382e-5_dp /) 48 real :: stp = 2.50662827465_dp49 real :: half = 0.5_dp, one = 1.0_dp, fpf = 5.5_dp48 real(KIND=dp) :: stp = 2.50662827465_dp 49 real(KIND=dp) :: half = 0.5_dp, one = 1.0_dp, fpf = 5.5_dp 50 50 51 51 x=xx-one … … 62 62 function gammp(a,x) 63 63 64 implicit none 65 66 real :: a, x, gln, gamser, gammp, gammcf 64 use par_mod, only: dp 65 66 implicit none 67 68 real(KIND=dp) :: a, x, gln, gamser, gammp, gammcf 67 69 68 70 if(x .lt. 0. .or. a .le. 0.) then … … 81 83 function gammq(a,x) 82 84 83 implicit none 84 85 real :: a, x, gln, gamser, gammq, gammcf 85 use par_mod, only: dp 86 87 implicit none 88 89 real(KIND=dp) :: a, x, gln, gamser, gammq, gammcf 86 90 87 91 if(x.lt.0..or.a.le.0.) then … … 100 104 subroutine gser(gamser,a,x,gln) 101 105 106 use par_mod, only: dp 107 102 108 implicit none 103 109 104 110 integer :: n 105 real :: gamser, a, x, gln, ap, summ, del106 real , external :: gammln111 real(KIND=dp) :: gamser, a, x, gln, ap, summ, del 112 real(KIND=dp), external :: gammln 107 113 108 114 integer,parameter :: itmax=100 … … 134 140 subroutine gcf(gammcf,a,x,gln) 135 141 142 use par_mod, only: dp 143 136 144 implicit none 137 145 138 146 integer :: n 139 real :: gammcf, a, x, gln, gold, a0, a1, b0, b1, fac, an, anf, ana, g140 real , external :: gammln147 real(KIND=4) :: gammcf, x, a, gln, gold, a0, a1, b0, b1, fac, an, anf, ana, g 148 real(KIND=dp), external :: gammln 141 149 142 150 integer,parameter :: itmax=100 … … 172 180 function erf(x) 173 181 174 implicit none 175 176 real :: x, erf 177 real, external :: gammp 182 use par_mod, only: dp 183 184 implicit none 185 186 real(KIND=dp) :: x, erf 187 real(KIND=dp), external :: gammp 178 188 179 189 if(x.lt.0.)then … … 186 196 function erfc(x) 187 197 188 implicit none 189 190 real :: x, erfc 191 real, external :: gammp, gammq 198 use par_mod, only: dp 199 200 implicit none 201 202 real(KIND=dp) :: x, erfc 203 real(KIND=dp), external :: gammp, gammq 192 204 193 205 if(x.lt.0.)then … … 200 212 function erfcc(x) 201 213 202 implicit none 203 204 real :: x, z, t, erfcc 214 use par_mod, only: dp 215 216 implicit none 217 218 real(KIND=dp) :: x, z, t, erfcc 205 219 206 220 z=abs(x)
Note: See TracChangeset
for help on using the changeset viewer.