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/aeronomars/deposition.F

    r1036 r1047  
    1       subroutine deposition(ig, ig_vl1, pplay, pplev, zzlay, zzlev,
     1      subroutine deposition(ngrid, nlayer, nq,
     2     &                      ig, ig_vl1, pplay, pplev, zzlay, zzlev,
    23     $                      zu, zv, zt, zycol, ptimestep, co2ice)
    34cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc
     
    78cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc
    89c
    9       use tracer_mod, only: nqmx
     10      use surfdat_h, only: z0 ! surface roughness
     11      use conc_mod, only: rnew ! specific gas constant
    1012      implicit none
    1113c
    12 #include "dimensions.h"
    13 #include "dimphys.h"
    14 #include "planete.h"
    15 #include "chimiedata.h"
    16 #include "conc.h"
    17 #include "surfdat.h"
     14!#include "dimensions.h"
     15!#include "dimphys.h"
     16!#include "planete.h"
     17!#include "chimiedata.h"
     18!#include "conc.h"
     19!#include "surfdat.h"
    1820c
    1921c     input
    2022c
    21       integer ig                         ! grid point index
    22       integer ig_vl1                     ! viking 1 grid point
    23       real    pplay(ngridmx,nlayermx)    ! pressure at the middle of the layers (pa)
    24       real    pplev(ngridmx,nlayermx+1)  ! pressure at layer boundaries (pa)
    25       real    zzlay(ngridmx,nlayermx)    ! altitude at the middle of the layers (m)
    26       real    zzlev(ngridmx,nlayermx+1)  ! altitude at layer boundaries (m)
    27       real    zu(ngridmx,nlayermx)       ! u component of the wind (m.s-1)
    28       real    zv(ngridmx,nlayermx)       ! v component of the wind (m.s-1)
    29       real    zt(ngridmx,nlayermx)       ! temperature (k)
    30       real    zycol(nlayermx,nqmx)       ! composition (volume mixing ratio)
    31       real    ptimestep                  ! physical timestep (s)
    32       real    co2ice(ngridmx)            ! co2 ice surface layer (kg.m-2)
     23      integer,intent(in) :: ngrid ! number of atmospheric columns
     24      integer,intent(in) :: nlayer ! number of atmospheric layers
     25      integer,intent(in) :: nq ! number of tracers
     26      integer ig                     ! grid point index
     27      integer ig_vl1                 ! viking 1 grid point
     28      real    pplay(ngrid,nlayer)    ! pressure at the middle of the layers (pa)
     29      real    pplev(ngrid,nlayer+1)  ! pressure at layer boundaries (pa)
     30      real    zzlay(ngrid,nlayer)    ! altitude at the middle of the layers (m)
     31      real    zzlev(ngrid,nlayer+1)  ! altitude at layer boundaries (m)
     32      real    zu(ngrid,nlayer)       ! u component of the wind (m.s-1)
     33      real    zv(ngrid,nlayer)       ! v component of the wind (m.s-1)
     34      real    zt(ngrid,nlayer)       ! temperature (k)
     35      real    zycol(nlayer,nq)       ! composition (volume mixing ratio)
     36      real    ptimestep              ! physical timestep (s)
     37      real    co2ice(ngrid)          ! co2 ice surface layer (kg.m-2)
    3338c
    3439c     local
Note: See TracChangeset for help on using the changeset viewer.