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

    r1036 r1047  
    2929c                            of the typical CCN profile, Oct. 2011)
    3030c------------------------------------------------------------------
    31 #include "dimensions.h"
    32 #include "dimphys.h"
     31!#include "dimensions.h"
     32!#include "dimphys.h"
    3333#include "comcstfi.h"
    3434#include "callkeys.h"
    3535!#include "tracer.h"
    36 #include "comgeomfi.h"
    37 #include "dimradmars.h"
     36!#include "comgeomfi.h"
     37!#include "dimradmars.h"
     38! naerkind is set in scatterers.h (built when compiling with makegcm -s #)
     39#include"scatterers.h"
     40
    3841c------------------------------------------------------------------
    3942c     Arguments:
     
    5255      real pdq(ngrid,nlay,nq)    ! tendance avant condensation
    5356                                 !   (kg/kg.s-1)
    54       REAL tau(ngridmx,naerkind) ! Column dust optical depth at each point
     57      REAL tau(ngrid,naerkind)  ! Column dust optical depth at each point
    5558
    5659c     Output:
     
    6568c     Local variables:
    6669
    67       LOGICAL firstcall
    68       DATA firstcall/.true./
    69       SAVE firstcall
    70 
     70      LOGICAL,SAVE :: firstcall = .true.
    7171           
    72       REAL rhocloud(ngridmx,nlayermx)  ! Cloud density (kg.m-3)
     72      REAL rhocloud(ngrid,nlay)  ! Cloud density (kg.m-3)
    7373
    7474      INTEGER ig,l
    7575
    76       REAL zq(ngridmx,nlayermx,nq)    ! local value of tracers
    77       REAL zq0(ngridmx,nlayermx,nq)   ! local initial value of tracers
    78       REAL zt(ngridmx,nlayermx)       ! local value of temperature
    79       REAL zqsat(ngridmx,nlayermx)    ! saturation
     76      REAL zq(ngrid,nlay,nq)    ! local value of tracers
     77      REAL zq0(ngrid,nlay,nq)   ! local initial value of tracers
     78      REAL zt(ngrid,nlay)       ! local value of temperature
     79      REAL zqsat(ngrid,nlay)    ! saturation
    8080      REAL*8 dzq                      ! masse de glace echangee (kg/kg)
    8181      REAL lw                         !Latent heat of sublimation (J.kg-1)
    8282      REAL,PARAMETER :: To=273.15     ! reference temperature, T=273.15 K
    83       real rdusttyp(ngridmx,nlayermx) ! Typical dust geom. mean radius (m)
    84       REAL ccntyp(ngridmx,nlayermx)
     83      real rdusttyp(ngrid,nlay) ! Typical dust geom. mean radius (m)
     84      REAL ccntyp(ngrid,nlay)
    8585                                      ! Typical dust number density (#/kg)
    8686c     CCN reduction factor
     
    120120c     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    121121
    122       call watersat(ngridmx*nlayermx,zt,pplay,zqsat)
     122      call watersat(ngrid*nlay,zt,pplay,zqsat)
    123123
    124124c     taux de condensation (kg/kg/s-1) dans les differentes couches
     
    147147c     ~~~~~~~~~~~~~~~
    148148      do l=1, nlay
    149         do ig=1,ngridmx
     149        do ig=1,ngrid
    150150          pdqcloud(ig,l,igcm_h2o_vap)=(zq(ig,l,igcm_h2o_vap)
    151151     &                            -zq0(ig,l,igcm_h2o_vap))/ptimestep
     
    159159c     ice crystal radius
    160160      do l=1, nlay
    161         do ig=1,ngridmx
     161        do ig=1,ngrid
    162162          call updaterice_typ(zq(ig,l,igcm_h2o_ice),
    163163     &       tau(ig,1),pzlay(ig,l),rice(ig,l))
Note: See TracChangeset for help on using the changeset viewer.