Ignore:
Timestamp:
Apr 6, 2016, 8:51:34 AM (9 years ago)
Author:
emillour
Message:

Venus and Titan GCMs:
Updates in the physics to keep up with updates in LMDZ5 (up to
LMDZ5 trunk, rev 2350) concerning dynamics/physics separation:

  • Adapted makelmdz and makelmdz_fcm script to stop if trying to compile 1d model or newstart or start2archive in parallel.
  • got rid of references to "dimensions.h" in physics. Within physics packages, use nbp_lon (=iim), nbp_lat (=jjmp1) and nbp_lev (=llm) from module mod_grid_phy_lmdz (in phy_common) instead. Only partially done for Titan, because of many hard-coded commons; a necessary first step will be to clean these up (using modules).

EM

File:
1 edited

Legend:

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

    r1301 r1530  
    5252C=======================================================================
    5353
     54      use mod_grid_phy_lmdz, only: nbp_lon, nbp_lat
    5455      IMPLICIT none
    5556     
    56 #include "dimensions.h"
    5757#include "YOMCST.h"
    5858
     
    7979C INTERMEDIATE FIELDS  (CORRELATIONS OF OROGRAPHY GRADIENT)
    8080
    81       REAL ztz(iim+1,jjm+1),zxtzx(iim+1,jjm+1)
    82       REAL zytzy(iim+1,jjm+1),zxtzy(iim+1,jjm+1)
    83       REAL weight(iim+1,jjm+1)
     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)
    8484
    8585C CORRELATIONS OF USN OROGRAPHY GRADIENTS
     
    107107c   
    108108c
    109       if(iim.ne.imar) STOP 'Problem dim. x'
    110       if(jjm.ne.jmar-1) STOP 'Problem dim. y'
     109      if(nbp_lon.ne.imar) STOP 'Problem dim. x'
     110      if(nbp_lat-1.ne.jmar-1) STOP 'Problem dim. y'
    111111      IF (imar.GT.2200 .OR. jmar.GT.1100) THEN
    112112         PRINT*, 'imar or jmar too big', imar, jmar
     
    114114      ENDIF
    115115
    116       IF(imar+1.ne.iim+1.or.jmar.ne.jjm+1)THEN
     116      IF(imar+1.ne.nbp_lon+1.or.jmar.ne.nbp_lat)THEN
    117117        print *,' imar or jmar bad dimensions:',imar,jmar
    118118        call abort
     
    297297C  FIRST FILTER, MOVING AVERAGE OVER 9 POINTS.
    298298
    299        CALL MVA9(zmea,iim+1,jjm+1)
    300        CALL MVA9(zstd,iim+1,jjm+1)
    301        CALL MVA9(zpic,iim+1,jjm+1)
    302        CALL MVA9(zval,iim+1,jjm+1)
    303        CALL MVA9(zxtzx,iim+1,jjm+1)
    304        CALL MVA9(zxtzy,iim+1,jjm+1)
    305        CALL MVA9(zytzy,iim+1,jjm+1)
     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)
    306306
    307307       DO ii = 1, imar
Note: See TracChangeset for help on using the changeset viewer.