Ignore:
Timestamp:
Apr 2, 2016, 4:09:43 PM (9 years ago)
Author:
emillour
Message:

Mars GCM:

  • Got rid of references to "dimensions.h" from physics packages: use nbp_lon (=iim), nbp_lat (==jjp1) and nbp_lev from module mod_grid_phy_lmdz (in phy_common) instead.
  • Added "ioipsl_getin_p_mod.F90" (getin_p routine) in phy_common to correctly read in parameters from *.def files in a parallel environment.

EM

Location:
trunk/LMDZ.MARS/libf/aeronomars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/libf/aeronomars/inichim_newstart.F90

    r1422 r1528  
    44      use tracer_mod
    55      USE comvert_mod, ONLY: aps,bps
     6      USE mod_grid_phy_lmdz, ONLY: nbp_lon, nbp_lat, nbp_lev
    67      implicit none
    78
     
    2627!  ----------
    2728!
    28 !  pq(iip1,jjp1,llm,nq)  Advected fields, ie chemical species here
     29!  pq(nbp_lon+1,nbp_lat,nbp_lev,nq)  Advected fields, ie chemical species here
    2930!  qsurf(ngrid,nq)     Amount of tracer on the surface (kg/m2)
    30 !  ps(iip1,jjp1)           Surface pressure (Pa)
     31!  ps(nbp_lon+1,nbp_lat)           Surface pressure (Pa)
    3132!  flagh2o                 flag for initialisation of h2o (1: yes / 0: no)
    3233!  flagthermo              flag for initialisation of thermosphere only (1: yes / 0: no)
     
    3435!=======================================================================
    3536
    36 #include "dimensions.h"
    37 #include "paramet.h"
    38 #include "callkeys.h"
    39 #include "datafile.h"
     37      include "callkeys.h"
     38      include "datafile.h"
    4039
    4140! inputs :
     
    4342      integer,intent(in) :: ngrid         ! number of atmospheric columns in the physics
    4443      integer,intent(in) :: nq                    ! number of tracers
    45       real,intent(in) :: ps(iip1,jjp1)            ! surface pressure in the gcm (Pa)   
     44      real,intent(in) :: ps(nbp_lon+1,nbp_lat)            ! surface pressure in the gcm (Pa)   
    4645      integer,intent(in) :: flagh2o               ! flag for h2o initialisation
    4746      integer,intent(in) :: flagthermo            ! flag for thermosphere initialisation only
     
    4948! outputs :
    5049
    51       real,intent(out) :: pq(iip1,jjp1,llm,nq)  ! advected fields, ie chemical species
     50      real,intent(out) :: pq(nbp_lon+1,nbp_lat,nbp_lev,nq)  ! advected fields, ie chemical species
    5251      real,intent(out) :: qsurf(ngrid,nq)     ! surface values (kg/m2) of tracers
    5352
     
    5655      integer :: iq, i, j, l, n, nbqchem
    5756      integer :: count, ierr, dummy
    58       real    :: mmean(iip1,jjp1,llm)             ! mean molecular mass (g)
     57      real    :: mmean(nbp_lon+1,nbp_lat,nbp_lev)             ! mean molecular mass (g)
    5958      real    :: pgcm                             ! pressure at each layer in the gcm (Pa)
    6059
     
    547546! 3. initialization of tracers
    548547
    549       do i = 1,iip1
    550          do j = 1,jjp1
    551             do l = 1,llm
     548      do i = 1,nbp_lon+1
     549         do j = 1,nbp_lat
     550            do l = 1,nbp_lev
    552551
    553552               pgcm = aps(l) + bps(l)*ps(i,j)  ! gcm pressure
     
    596595      if (igcm_ch4 /= 0) then
    597596         vmr = 10.e-9       
    598          do i = 1,iip1
    599             do j = 1,jjp1
    600                do l = 1,llm
     597         do i = 1,nbp_lon+1
     598            do j = 1,nbp_lat
     599               do l = 1,nbp_lev
    601600                  pq(i,j,l,igcm_ch4) = vmr*mmol(igcm_ch4)/mmean(i,j,l)
    602601               end do
     
    623622         end if
    624623
    625          do i = 1,iip1
    626             do j = 1,jjp1
    627                do l = 1,llm
     624         do i = 1,nbp_lon+1
     625            do j = 1,nbp_lat
     626               do l = 1,nbp_lev
    628627                  ! all ions to 0     
    629628                  pq(i,j,l,igcm_co2plus)  = 0.
  • trunk/LMDZ.MARS/libf/aeronomars/moldiff_red.F90

    r1431 r1528  
    77implicit none
    88
    9 !#include "dimensions.h"
    10 !#include "dimphys.h"
    11 !#include "comcstfi.h"
    12 !#include "callkeys.h"
    13 !#include "comdiurn.h"
    14 !#include "chimiedata.h"
    15 !#include "tracer.h"
    16 !#include "conc.h"
    17 #include "diffusion.h"
     9include "diffusion.h"
    1810
    1911! July 2014 JYC ADD BALISTIC Transport coupling to compute wup for H and H2
     
    937929        use tracer_mod, only: nqmx
    938930        IMPLICIT NONE
    939 !#include "dimensions.h"
    940931
    941932        INTEGER,INTENT(IN) :: nl,nq
     
    973964        use tracer_mod, only: nqmx
    974965        IMPLICIT NONE
    975 !#include "dimensions.h"
    976966
    977967        INTEGER :: nl,nq,l
     
    10581048        use tracer_mod, only: nqmx
    10591049        IMPLICIT NONE
    1060 !#include "dimensions.h"
    10611050       
    10621051        INTEGER :: nl,nq,il,l,i,iq,nlx,iz,ig
     
    14001389        use tracer_mod, only: nqmx
    14011390        IMPLICIT NONE
    1402 !#include "dimensions.h"
    14031391        INTEGER :: nl,nq,nlx,il,nn,iP,ig,compteur
    14041392        INTEGER,DIMENSION(1) :: indP
     
    15021490        use tracer_mod, only: nqmx
    15031491        IMPLICIT NONE
    1504 !#include "dimensions.h"
    15051492        INTEGER :: nl,nq,nlx,il,nn,iP,ig,compteur
    15061493        INTEGER,DIMENSION(1) :: indP
  • trunk/LMDZ.MARS/libf/aeronomars/surfacearea.F

    r1266 r1528  
    1919!==========================================================================
    2020
    21 #include "dimensions.h"
    22 #include "callkeys.h"
    23 #include "chimiedata.h"
     21      include "callkeys.h"
     22      include "chimiedata.h"
    2423
    2524! input
Note: See TracChangeset for help on using the changeset viewer.