Ignore:
Timestamp:
Dec 6, 2016, 11:45:04 AM (8 years ago)
Author:
slebonnois
Message:

SL: corrections for Venus newstart

Location:
trunk/LMDZ.COMMON/libf/dynphy_lonlat/phyvenus
Files:
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.COMMON/libf/dynphy_lonlat/phyvenus/grid_noro.F

    r1636 r1638  
    5252C=======================================================================
    5353
    54       use mod_grid_phy_lmdz, only: nbp_lon, nbp_lat
    5554      IMPLICIT none
    5655     
     
    7978C INTERMEDIATE FIELDS  (CORRELATIONS OF OROGRAPHY GRADIENT)
    8079
    81       REAL ztz(nbp_lon+1,nbp_lat),zxtzx(nbp_lon+1,nbp_lat)
    82       REAL zytzy(nbp_lon+1,nbp_lat),zxtzy(nbp_lon+1,nbp_lat)
    83       REAL weight(nbp_lon+1,nbp_lat)
     80      REAL ztz(imar+1,jmar),zxtzx(imar+1,jmar)
     81      REAL zytzy(imar+1,jmar),zxtzy(imar+1,jmar)
     82      REAL weight(imar+1,jmar)
    8483
    8584C CORRELATIONS OF USN OROGRAPHY GRADIENTS
     
    107106c   
    108107c
    109       if(nbp_lon.ne.imar) STOP 'Problem dim. x'
    110       if(nbp_lat-1.ne.jmar-1) STOP 'Problem dim. y'
    111108      IF (imar.GT.2200 .OR. jmar.GT.1100) THEN
    112109         PRINT*, 'imar or jmar too big', imar, jmar
    113110         CALL ABORT
    114111      ENDIF
    115 
    116       IF(imar+1.ne.nbp_lon+1.or.jmar.ne.nbp_lat)THEN
    117         print *,' imar or jmar bad dimensions:',imar,jmar
    118         call abort
    119       ENDIF
    120 
    121112
    122113c      print *,'xdata:',xdata
     
    297288C  FIRST FILTER, MOVING AVERAGE OVER 9 POINTS.
    298289
    299        CALL MVA9(zmea,nbp_lon+1,nbp_lat)
    300        CALL MVA9(zstd,nbp_lon+1,nbp_lat)
    301        CALL MVA9(zpic,nbp_lon+1,nbp_lat)
    302        CALL MVA9(zval,nbp_lon+1,nbp_lat)
    303        CALL MVA9(zxtzx,nbp_lon+1,nbp_lat)
    304        CALL MVA9(zxtzy,nbp_lon+1,nbp_lat)
    305        CALL MVA9(zytzy,nbp_lon+1,nbp_lat)
     290       CALL MVA9(zmea,imar+1,jmar)
     291       CALL MVA9(zstd,imar+1,jmar)
     292       CALL MVA9(zpic,imar+1,jmar)
     293       CALL MVA9(zval,imar+1,jmar)
     294       CALL MVA9(zxtzx,imar+1,jmar)
     295       CALL MVA9(zxtzy,imar+1,jmar)
     296       CALL MVA9(zytzy,imar+1,jmar)
    306297
    307298       DO ii = 1, imar
  • trunk/LMDZ.COMMON/libf/dynphy_lonlat/phyvenus/startvar.F90

    r1523 r1638  
    428428  IF(check) WRITE(lunout,*)'Compute surface roughness induced by the orography'
    429429  ALLOCATE(rugo   (iml  ,jml))
    430   ALLOCATE(tmp_var(iml-1,jml))
    431430  CALL rugsoro(lon_rad, lat_rad, relief_hi,      &
    432        lon_in, lat_in, tmp_var)
    433   rugo(1:iml-1,:)=tmp_var; rugo(iml,:)=tmp_var(1,:)
    434   DEALLOCATE(relief_hi,tmp_var,lon_rad,lat_rad)
     431       lon_in, lat_in, rugo)
     432  DEALLOCATE(relief_hi,lon_rad,lat_rad)
    435433  RETURN
    436434
Note: See TracChangeset for help on using the changeset viewer.