Changeset 1048 for trunk/LMDZ.VENUS/libf/phyvenus
- Timestamp:
- Sep 23, 2013, 7:02:50 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.VENUS/libf/phyvenus/grid_noro.F
r808 r1048 52 52 C======================================================================= 53 53 54 IMPLICIT INTEGER (I,J) 55 IMPLICIT REAL(X,Z) 54 IMPLICIT none 56 55 57 56 #include "dimensions.h" 57 #include "YOMCST.h" 58 58 59 59 INTEGER imdep, jmdep … … 63 63 INTEGER imar, jmar 64 64 c parametres lies au fichier d entree... A documenter... 65 parameter(iext=216, epsfra = 1.e-5) 65 integer iext 66 parameter(iext=216) 66 67 REAL xusn(imdep+2*iext),yusn(jmdep+2) 67 68 REAL zusn(imdep+2*iext,jmdep+2) 68 69 70 c local var 71 real zdeltax,zdeltay,zlenx,zleny,xincr 72 real zbordnor,zbordsud,zbordest,zbordoue,weighx,weighy 73 real zllmmea,zllmstd,zllmsig,zllmgam,zllmpic,zllmval,zllmthe 74 real zminthe,xk,xl,xm,xp,xq,xw 75 real zmeanor,zmeasud,zstdnor,zstdsud,zsignor,zsigsud 76 real zweinor,zweisud,zpicnor,zpicsud,zvalnor,zvalsud 77 integer i,j,ii,jj 78 69 79 C INTERMEDIATE FIELDS (CORRELATIONS OF OROGRAPHY GRADIENT) 70 80 … … 87 97 c 88 98 print *,' parametres de l orographie a l echelle sous maille' 89 xpi=acos(-1.) 90 rad = 6 371 229. 91 zdeltay=2.*xpi/REAL(jmdep)*rad 99 100 zdeltay=2.*RPI/REAL(jmdep)*RA 92 101 c 93 102 c quelques tests de dimensions: … … 123 132 DO i=1,iext 124 133 zusn(i,j+1)=zdata(imdep-iext+i,j) 125 xusn(i)=xdata(imdep-iext+i)-2.* xpi134 xusn(i)=xdata(imdep-iext+i)-2.*RPI 126 135 zusn(imdep+iext+i,j+1)=zdata(i,j) 127 xusn(imdep+iext+i)=xdata(i)+2.* xpi136 xusn(imdep+iext+i)=xdata(i)+2.*RPI 128 137 ENDDO 129 138 ENDDO … … 197 206 c SUMMATION OVER GRIDPOINT AREA 198 207 c 199 zleny= xpi/REAL(jmdep)*rad200 xincr= xpi/2./REAL(jmdep)208 zleny=RPI/REAL(jmdep)*RA 209 xincr=RPI/2./REAL(jmdep) 201 210 DO ii = 1, imar+1 202 211 DO jj = 1, jmar … … 208 217 zlenx=zleny*cos(yusn(j)) 209 218 zdeltax=zdeltay*cos(yusn(j)) 210 zbordnor=(c(jj)-yusn(j)+xincr)* rad211 zbordsud=(yusn(j)-d(jj)+xincr)* rad219 zbordnor=(c(jj)-yusn(j)+xincr)*RA 220 zbordsud=(yusn(j)-d(jj)+xincr)*RA 212 221 weighy=AMAX1(0., 213 222 * amin1(zbordnor,zbordsud,zleny)) 214 223 IF(weighy.ne.0)THEN 215 224 DO i = 2, imdep+2*iext-1 216 zbordest=(xusn(i)-a(ii)+xincr)* rad*cos(yusn(j))217 zbordoue=(b(ii)+xincr-xusn(i))* rad*cos(yusn(j))225 zbordest=(xusn(i)-a(ii)+xincr)*RA*cos(yusn(j)) 226 zbordoue=(b(ii)+xincr-xusn(i))*RA*cos(yusn(j)) 218 227 weighx=AMAX1(0., 219 228 * amin1(zbordest,zbordoue,zlenx))
Note: See TracChangeset
for help on using the changeset viewer.