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

Location:
trunk/LMDZ.COMMON/libf/dynlonlat_phylonlat
Files:
4 moved

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.COMMON/libf/dynlonlat_phylonlat/phyvenus/readstartphy.F

    r1520 r1530  
    1515c======================================================================
    1616      use dimphy
     17      USE mod_grid_phy_lmdz, only: klon_glo
    1718      IMPLICIT none
    18 #include "dimensions.h"
    1919#include "netcdf.inc"
    2020#include "dimsoil.h"
    2121c======================================================================
    22       integer ngridmx
    23       parameter (ngridmx=(2+(jjm-1)*iim - 1/jjm))
    2422
    2523      CHARACTER*(*) fichnom
    26       REAL rlat(ngridmx), rlon(ngridmx)
    27       REAL tsol(ngridmx)
    28       REAL tsoil(ngridmx,nsoilmx)
    29       REAL albe(ngridmx)
    30       REAL radsol(ngridmx)
    31       REAL sollw(ngridmx)
    32       real solsw(ngridmx)
    33       real fder(ngridmx)
    34       real dlw(ngridmx)
    35       real sollwdown(ngridmx)
    36       REAL zmea(ngridmx), zstd(ngridmx)
    37       REAL zsig(ngridmx), zgam(ngridmx), zthe(ngridmx)
    38       REAL zpic(ngridmx), zval(ngridmx)
     24      REAL rlat(klon_glo), rlon(klon_glo)
     25      REAL tsol(klon_glo)
     26      REAL tsoil(klon_glo,nsoilmx)
     27      REAL albe(klon_glo)
     28      REAL radsol(klon_glo)
     29      REAL sollw(klon_glo)
     30      real solsw(klon_glo)
     31      real fder(klon_glo)
     32      real dlw(klon_glo)
     33      real sollwdown(klon_glo)
     34      REAL zmea(klon_glo), zstd(klon_glo)
     35      REAL zsig(klon_glo), zgam(klon_glo), zthe(klon_glo)
     36      REAL zpic(klon_glo), zval(klon_glo)
    3937      INTEGER length
    4038      PARAMETER (length=100)
     
    129127         xmin = 1.0E+20
    130128         xmax = -1.0E+20
    131          DO i = 1, ngridmx
     129         DO i = 1, klon_glo
    132130            xmin = MIN(tsol(i),xmin)
    133131            xmax = MAX(tsol(i),xmax)
     
    148146         PRINT*, "phyetat0: Le champ <Tsoil"//str2//"> est absent"
    149147         PRINT*, "          Il prend donc la valeur de surface"
    150          DO i=1, ngridmx
     148         DO i=1, klon_glo
    151149             tsoil(i,isoil)=tsol(i)
    152150         ENDDO
     
    185183         xmin = 1.0E+20
    186184         xmax = -1.0E+20
    187          DO i = 1, ngridmx
     185         DO i = 1, klon_glo
    188186            xmin = MIN(albe(i),xmin)
    189187            xmax = MAX(albe(i),xmax)
     
    213211      xmin = 1.0E+20
    214212      xmax = -1.0E+20
    215       DO i = 1, ngridmx
     213      DO i = 1, klon_glo
    216214         xmin = MIN(solsw(i),xmin)
    217215         xmax = MAX(solsw(i),xmax)
     
    239237      xmin = 1.0E+20
    240238      xmax = -1.0E+20
    241       DO i = 1, ngridmx
     239      DO i = 1, klon_glo
    242240         xmin = MIN(sollw(i),xmin)
    243241         xmax = MAX(sollw(i),xmax)
     
    266264      xmin = 1.0E+20
    267265      xmax = -1.0E+20
    268       DO i = 1, ngridmx
     266      DO i = 1, klon_glo
    269267         xmin = MIN(fder(i),xmin)
    270268         xmax = MAX(fder(i),xmax)
     
    293291      xmin = 1.0E+20
    294292      xmax = -1.0E+20
    295       DO i = 1, ngridmx
     293      DO i = 1, klon_glo
    296294         xmin = MIN(dlw(i),xmin)
    297295         xmax = MAX(dlw(i),xmax)
     
    320318      xmin = 1.0E+20
    321319      xmax = -1.0E+20
    322       DO i = 1, ngridmx
     320      DO i = 1, klon_glo
    323321         xmin = MIN(sollwdown(i),xmin)
    324322         xmax = MAX(sollwdown(i),xmax)
     
    345343      xmin = 1.0E+20
    346344      xmax = -1.0E+20
    347       DO i = 1, ngridmx
     345      DO i = 1, klon_glo
    348346         xmin = MIN(radsol(i),xmin)
    349347         xmax = MAX(radsol(i),xmax)
     
    372370      xmin = 1.0E+20
    373371      xmax = -1.0E+20
    374       DO i = 1, ngridmx
     372      DO i = 1, klon_glo
    375373         xmin = MIN(zmea(i),xmin)
    376374         xmax = MAX(zmea(i),xmax)
     
    396394      xmin = 1.0E+20
    397395      xmax = -1.0E+20
    398       DO i = 1, ngridmx
     396      DO i = 1, klon_glo
    399397         xmin = MIN(zstd(i),xmin)
    400398         xmax = MAX(zstd(i),xmax)
     
    420418      xmin = 1.0E+20
    421419      xmax = -1.0E+20
    422       DO i = 1, ngridmx
     420      DO i = 1, klon_glo
    423421         xmin = MIN(zsig(i),xmin)
    424422         xmax = MAX(zsig(i),xmax)
     
    444442      xmin = 1.0E+20
    445443      xmax = -1.0E+20
    446       DO i = 1, ngridmx
     444      DO i = 1, klon_glo
    447445         xmin = MIN(zgam(i),xmin)
    448446         xmax = MAX(zgam(i),xmax)
     
    468466      xmin = 1.0E+20
    469467      xmax = -1.0E+20
    470       DO i = 1, ngridmx
     468      DO i = 1, klon_glo
    471469         xmin = MIN(zthe(i),xmin)
    472470         xmax = MAX(zthe(i),xmax)
     
    492490      xmin = 1.0E+20
    493491      xmax = -1.0E+20
    494       DO i = 1, ngridmx
     492      DO i = 1, klon_glo
    495493         xmin = MIN(zpic(i),xmin)
    496494         xmax = MAX(zpic(i),xmax)
     
    516514      xmin = 1.0E+20
    517515      xmax = -1.0E+20
    518       DO i = 1, ngridmx
     516      DO i = 1, klon_glo
    519517         xmin = MIN(zval(i),xmin)
    520518         xmax = MAX(zval(i),xmax)
Note: See TracChangeset for help on using the changeset viewer.