Subversion Repositories lagranto.ecmwf

Rev

Rev 3 | Rev 13 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3 Rev 11
Line 1240... Line 1240...
1240
          klo=k
1240
          klo=k
1241
        endif
1241
        endif
1242
      goto 1
1242
      goto 1
1243
      endif
1243
      endif
1244
      h=xa(khi)-xa(klo)
1244
      h=xa(khi)-xa(klo)
-
 
1245
      if (h.eq.0.) then
1245
      if (h.eq.0.) pause 'bad xa input in splint'
1246
         print*,'bad xa input in splint'
-
 
1247
         stop
-
 
1248
      endif
1246
      a=(xa(khi)-x)/h
1249
      a=(xa(khi)-x)/h
1247
      b=(x-xa(klo))/h
1250
      b=(x-xa(klo))/h
1248
      y=a*ya(klo)+b*ya(khi)+((a**3-a)*y2a(klo)+(b**3-b)*y2a(khi))*(h**
1251
      y=a*ya(klo)+b*ya(khi)+((a**3-a)*y2a(klo)+(b**3-b)*y2a(khi))*(h**
1249
     *2)/6.
1252
     *2)/6.
1250
      return
1253
      return
Line 1750... Line 1753...
1750
 
1753
 
1751
      PHTOPHS = ZRPI18*ASIN(ZARG)
1754
      PHTOPHS = ZRPI18*ASIN(ZARG)
1752
 
1755
 
1753
      RETURN
1756
      RETURN
1754
      END
1757
      END
-
 
1758
 
-
 
1759
c     ------------------------------------------------------------------
-
 
1760
c     Compute Cos/Sin of an argument in Degree instead of Radian
-
 
1761
c     ------------------------------------------------------------------
-
 
1762
 
-
 
1763
      real function cosd(arg)
-
 
1764
 
-
 
1765
      real,intent(IN) :: arg
-
 
1766
      real,parameter :: grad2rad=3.1415926/360.
-
 
1767
      cosd=cos(arg*grad2rad)
-
 
1768
      return
-
 
1769
      end
-
 
1770
 
-
 
1771
      real function sind(arg)
-
 
1772
 
-
 
1773
      real,intent(IN) :: arg
-
 
1774
      real,parameter :: grad2rad=3.1415926/360.
-
 
1775
      sind=sin(arg*grad2rad)
-
 
1776
      return
-
 
1777
      end
-
 
1778
 
-
 
1779