Changeset 48 for trunk/angle.pro


Ignore:
Timestamp:
03/16/14 20:38:39 (10 years ago)
Author:
pinsard
Message:

fix thanks to coding rules

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/angle.pro

    r2 r48  
    1616;;      common 
    1717;;            /comcoh/ glamf,   : longitudes and latitudes at F-points 
    18 ;;                     gphif    
     18;;                     gphif 
    1919;; 
    2020;;   Output : 
    2121;;   ------- 
    2222;;      common 
    23 ;;            /comcoh/ gsinu,gcosu : sinus and cosinus of the angle  
    24 ;;                     gsinv,gcosv   between north-south direction  
    25 ;;                                   and the j-direction of the mesh 
     23;;            /comcoh/ gsinu,gcosu : sinus and cosinus of the angle 
     24;;                     gsinv,gcosv   between north-south direction 
     25;;                                   and the j-direction of the mesh 
    2626;; 
    2727;;   Modifications: 
     
    3737;;;--------------------------------------------------------------------- 
    3838; 
    39 ; 
    4039; I. Compute the cosinus and sinus 
    4140; ================================ 
    42 ;      
     41; 
    4342;     ... north pole direction & modulous (at u-point) 
    4443      zxnpu = 0. - fsxspp( glamu, gphiu ) 
    4544      zynpu = 0. - fsyspp( glamu, gphiu ) 
    4645      znnpu = zxnpu*zxnpu + zynpu*zynpu 
    47 ;      
     46; 
    4847;     ... north pole direction & modulous (at v-point) 
    4948      zxnpv = 0. - fsxspp( glamv, gphiv ) 
    5049      zynpv = 0. - fsyspp( glamv, gphiv ) 
    5150      znnpv = zxnpv*zxnpv + zynpv*zynpv 
    52 ;      
     51; 
    5352;     ... j-direction: f-point segment direction (u-point) 
    5453      zxffu=  fsxspp( glamf, gphif ) - fsxspp( shift(glamf, 0, 1), shift(gphif, 0, 1) ) 
     
    5655      zmnpfu= sqrt ( znnpu * ( zxffu*zxffu + zyffu*zyffu )  ) 
    5756 
    58       
    59 ;      
     57 
     58; 
    6059;     ... i-direction: f-point segment direction (v-point) 
    6160      zxffv=  fsxspp( glamf, gphif ) - fsxspp( shift(glamf, 1, 0), shift(gphif, 1, 0) ) 
    6261      zyffv=  fsyspp( glamf, gphif ) - fsyspp( shift(glamf, 1, 0), shift(gphif, 1, 0) ) 
    6362      zmnpfv= sqrt ( znnpv * ( zxffv*zxffv + zyffv*zyffv )  ) 
    64       
    65 ;      
     63 
     64; 
    6665;     ... cosinus and sinus using scalar and vectorial products 
    6766      gsinu = ( zxnpu*zyffu - zynpu*zxffu ) / zmnpfu 
     
    6968 
    7069 
    71 ;      
     70; 
    7271;     ... cosinus and sinus using scalar and vectorial products 
    7372;     (caution, rotation of 90 degres) 
     
    7574      gcosv =-( zxnpv*zyffv - zynpv*zxffv ) / zmnpfv 
    7675 
    77       
    78 ;      
    79 ;      
     76 
     77; 
     78; 
    8079;     II. Geographic mesh 
    8180;     =================== 
    82 ;      
    83 ;      
     81; 
     82; 
    8483      ind = where(abs(glamf-shift(glamf, 0, 1)) LT 1.e-8) 
    8584      gsinu(ind) = 0.d 
    8685      gcosu(ind) = 1.d 
    87 ;      
     86; 
    8887      ind = where(abs(gphif-shift(gphif, 1, 0)) LT 1.e-8) 
    8988      gsinv(ind) = 0.d 
     
    9190; 
    9291return 
    93 END  
     92END 
Note: See TracChangeset for help on using the changeset viewer.