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/improvedclouds.F

    r1036 r1047  
    1010     &                      igcm_dust_number, igcm_ccn_mass,
    1111     &                      igcm_ccn_number
     12      use conc_mod, only: mmean
    1213      implicit none
    1314     
     
    3334c           A. Spiga, optimization (February 2012)
    3435c------------------------------------------------------------------
    35 #include "dimensions.h"
    36 #include "dimphys.h"
     36!#include "dimensions.h"
     37!#include "dimphys.h"
    3738#include "comcstfi.h"
    3839#include "callkeys.h"
    3940!#include "tracer.h"
    40 #include "comgeomfi.h"
    41 #include "dimradmars.h"
     41!#include "comgeomfi.h"
     42!#include "dimradmars.h"
    4243#include "microphys.h"
    43 #include "conc.h"
     44!#include "conc.h"
    4445c------------------------------------------------------------------
    4546c     Inputs:
     
    5758      REAL pdq(ngrid,nlay,nq)    ! tendance avant condensation
    5859                                 !   (kg/kg.s-1)
    59       REAL tauscaling(ngridmx)     ! Convertion factor for qdust and Ndust
     60      REAL tauscaling(ngrid)     ! Convertion factor for qdust and Ndust
    6061
    6162c     Outputs:
     
    7778      INTEGER ig,l,i
    7879     
    79       REAL zq(ngridmx,nlayermx,nq)  ! local value of tracers
    80       REAL zq0(ngridmx,nlayermx,nq) ! local initial value of tracers
    81       REAL zt(ngridmx,nlayermx)       ! local value of temperature
    82       REAL zqsat(ngridmx,nlayermx)    ! saturation
     80      REAL zq(ngrid,nlay,nq)  ! local value of tracers
     81      REAL zq0(ngrid,nlay,nq) ! local initial value of tracers
     82      REAL zt(ngrid,nlay)       ! local value of temperature
     83      REAL zqsat(ngrid,nlay)    ! saturation
    8384      REAL lw                         !Latent heat of sublimation (J.kg-1)
    8485      REAL cste
     
    101102      REAL rice(ngrid,nlay)      ! Ice mass mean radius (m)
    102103                                 ! (r_c in montmessin_2004)
    103       REAL rhocloud(ngridmx,nlayermx)  ! Cloud density (kg.m-3)
    104       REAL rdust(ngridmx,nlayermx) ! Dust geometric mean radius (m)
     104      REAL rhocloud(ngrid,nlay)  ! Cloud density (kg.m-3)
     105      REAL rdust(ngrid,nlay) ! Dust geometric mean radius (m)
    105106
    106107      REAL res      ! Resistance growth
     
    259260      dev2 = 1. / ( sqrt(2.) * sigma_ice )
    260261
    261       call watersat(ngridmx*nlayermx,zt,pplay,zqsat)
     262      call watersat(ngrid*nlay,zt,pplay,zqsat)
    262263           
    263264      countcells = 0
Note: See TracChangeset for help on using the changeset viewer.