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/dyn3d/start2archive.F

    r1036 r1047  
    2020
    2121      use infotrac, only: iniadvtrac, nqtot, tnom
     22      use comsoil_h, only: nsoilmx, inertiedat
     23      use surfdat_h, only: ini_surfdat_h
     24      use comsoil_h, only: ini_comsoil_h
    2225      implicit none
    2326
    2427#include "dimensions.h"
     28      integer, parameter :: ngridmx = (2+(jjm-1)*iim - 1/jjm)
    2529#include "paramet.h"
    2630#include "comconst.h"
     
    3438#include "description.h"
    3539
    36 #include "dimphys.h"
    37 #include "comsoil.h"
     40!#include "dimphys.h"
     41!#include "comsoil.h"
    3842!#include"advtrac.h"
    3943#include "netcdf.inc"
     
    6266      REAL tsoil(ngridmx,nsoilmx) ! Soil temperature
    6367      REAL co2ice(ngridmx)      ! CO2 ice layer
    64       REAL q2(ngridmx,nlayermx+1)
     68      REAL q2(ngridmx,llm+1)
    6569      REAL,ALLOCATABLE :: qsurf(:,:)
    6670      REAL emis(ngridmx)
     
    126130      allocate(qsurf(ngridmx,nqtot))
    127131      allocate(qsurfS(ip1jmp1,nqtot))
     132      call ini_surfdat_h(ngridmx)
     133      call ini_comsoil_h(ngridmx)
     134     
    128135
    129136      fichnom = 'start.nc'
     
    135142      Lmodif=0
    136143
    137       CALL phyetat0 (fichnom,0,Lmodif,nsoilmx,nqtot,day_ini_fi,timefi,
    138      .      tsurf,tsoil,emis,q2,qsurf,co2ice)
     144      CALL phyetat0 (fichnom,0,Lmodif,nsoilmx,ngridmx,llm,nqtot,
     145     &      day_ini_fi,timefi,tsurf,tsoil,emis,q2,qsurf,co2ice)
    139146
    140147       ierr = NF_OPEN (fichnom, NF_NOWRITE,nid1)
Note: See TracChangeset for help on using the changeset viewer.