diff options
| author | Christoph Berg <christoph.berg@credativ.de> | 2022-08-23 10:23:16 +0200 |
|---|---|---|
| committer | Christoph Berg <christoph.berg@credativ.de> | 2022-08-23 10:23:16 +0200 |
| commit | 2d1068e60bce7ae1fff11623454900e8cee956b1 (patch) | |
| tree | acebe276e30466ef0ab91bc3da5e379bec0d7dc5 /lib/pltanh.f90 | |
| parent | 43bebfbad6e7ba026bd3d55720c7d9e12a7ef8ef (diff) | |
New upstream version 2.6.0~rc3+repackupstream/2.6.0_rc3+repack
Diffstat (limited to 'lib/pltanh.f90')
| -rwxr-xr-x | lib/pltanh.f90 | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/lib/pltanh.f90 b/lib/pltanh.f90 index 4c6c2b6d..60c17c8a 100755 --- a/lib/pltanh.f90 +++ b/lib/pltanh.f90 @@ -1,24 +1,24 @@ -subroutine pltanh(x,y) - isign=+1 - z=x - if( x.lt.0 ) then - isign=-1 - z=abs(x) - endif - if( z.le. 0.8 ) then - y=0.83*x - return - elseif( z.le. 1.6 ) then - y=isign*(0.322*z+0.4064) - return - elseif( z.le. 3.0 ) then - y=isign*(0.0524*z+0.8378) - return - elseif( z.lt. 7.0 ) then - y=isign*(0.0012*z+0.9914) - return - else - y=isign*0.9998 - return - endif -end subroutine pltanh +subroutine pltanh(x,y)
+ isign=+1
+ z=x
+ if( x.lt.0 ) then
+ isign=-1
+ z=abs(x)
+ endif
+ if( z.le. 0.8 ) then
+ y=0.83*x
+ return
+ elseif( z.le. 1.6 ) then
+ y=isign*(0.322*z+0.4064)
+ return
+ elseif( z.le. 3.0 ) then
+ y=isign*(0.0524*z+0.8378)
+ return
+ elseif( z.lt. 7.0 ) then
+ y=isign*(0.0012*z+0.9914)
+ return
+ else
+ y=isign*0.9998
+ return
+ endif
+end subroutine pltanh
|
