Ignore:
Timestamp:
Sep 23, 2013, 9:56:47 AM (11 years ago)
Author:
emillour
Message:

Mars GCM:

  • IMPORTANT CHANGE: Removed all reference/use of ngridmx (dimphys.h) in routines (necessary prerequisite to using parallel dynamics); in most cases this just means adding 'ngrid' as routine argument, and making local saved variables allocatable (and allocated at first call). In the process, had to convert many *.h files to equivalent modules: yomaer.h => yomaer_h.F90 , surfdat.h => surfdat_h.F90 , comsaison.h => comsaison_h.F90 , yomlw.h => yomlw_h.F90 , comdiurn.h => comdiurn_h.F90 , dimradmars.h => dimradmars_mod.F90 , comgeomfi.h => comgeomfi_h.F90, comsoil.h => comsoil_h.F90 , slope.h => slope_mod.F90
  • Also updated EOF routines, everything is now in eofdump_mod.F90
  • Removed unused routine lectfux.F (in dyn3d)

EM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/libf/phymars/convadj.F

    r1036 r1047  
    3131!     ------------
    3232
    33 #include "dimensions.h"
    34 #include "dimphys.h"
     33!#include "dimensions.h"
     34!#include "dimphys.h"
    3535#include "comcstfi.h"
    3636#include "callkeys.h"
     
    6363
    6464      INTEGER ig,i,l,l1,l2,jj
    65       INTEGER jcnt, jadrs(ngridmx)
    66 
    67       REAL sig(nlayermx+1),sdsig(nlayermx),dsig(nlayermx)
    68       REAL zu(ngridmx,nlayermx),zv(ngridmx,nlayermx)
    69       REAL zh(ngridmx,nlayermx)
    70       REAL zu2(ngridmx,nlayermx),zv2(ngridmx,nlayermx)
    71       REAL zh2(ngridmx,nlayermx), zhc(ngridmx,nlayermx)
     65      INTEGER jcnt, jadrs(ngrid)
     66
     67      REAL sig(nlay+1),sdsig(nlay),dsig(nlay)
     68      REAL zu(ngrid,nlay),zv(ngrid,nlay)
     69      REAL zh(ngrid,nlay)
     70      REAL zu2(ngrid,nlay),zv2(ngrid,nlay)
     71      REAL zh2(ngrid,nlay), zhc(ngrid,nlay)
    7272      REAL zhm,zsm,zdsm,zum,zvm,zalpha,zhmc
    7373
     
    7575      INTEGER iq,ico2
    7676      save ico2
    77       REAL zq(ngridmx,nlayermx,nq), zq2(ngridmx,nlayermx,nq)
     77      REAL zq(ngrid,nlay,nq), zq2(ngrid,nlay,nq)
    7878      REAL zqm(nq),zqco2m
    7979      real m_co2, m_noco2, A , B
     
    8282      real mtot1, mtot2 , mm1, mm2
    8383       integer l1ref, l2ref
    84       LOGICAL vtest(ngridmx),down,firstcall
     84      LOGICAL vtest(ngrid),down,firstcall
    8585      save firstcall
    8686      data firstcall/.true./
     
    9494
    9595      IF (firstcall) THEN
    96         IF(ngrid.NE.ngridmx) THEN
    97            PRINT*
    98            PRINT*,'STOP in convadj'
    99            PRINT*,'ngrid    =',ngrid
    100            PRINT*,'ngridmx  =',ngridmx
    101         ENDIF
     96
    10297        ico2=0
    10398        if (tracer) then
Note: See TracChangeset for help on using the changeset viewer.