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

    r999 r1047  
    22
    33      use netcdf
     4      use comsoil_h, only: layer, mlayer, inertiedat, volcapa
    45      implicit none
    56
     
    3132!======================================================================
    3233
    33 #include "dimensions.h"
    34 #include "dimphys.h"
    35 
    36 #include "comsoil.h"
    37 !#include "netcdf.inc"
    3834!======================================================================
    3935!  arguments
    4036!  ---------
    4137!  inputs:
    42       integer nid       ! Input Netcdf file ID
    43       integer ngrid     ! # of horizontal grid points
    44       integer nsoil     ! # of soil layers
    45       real tsurf(ngrid) ! surface temperature
    46       integer indextime ! position on time axis
     38      integer,intent(in) :: nid ! Input Netcdf file ID
     39      integer,intent(in) :: ngrid       ! # of horizontal grid points
     40      integer,intent(in) :: nsoil       ! # of soil layers
     41      real,intent(in) :: tsurf(ngrid)  ! surface temperature
     42      integer,intent(in) :: indextime   ! position on time axis
    4743!  output:
    48       real tsoil(ngridmx,nsoilmx)       ! soil temperature
     44      real,intent(out) :: tsoil(ngrid,nsoil)    ! soil temperature
    4945
    5046!======================================================================
     
    184180      enddo
    185181
    186 ! 2. Volumetric heat capacity (note: it is declared in comsoil.h)
     182! 2. Volumetric heat capacity (note: it is declared in comsoil_h)
    187183! ---------------------------
    188184! "volcapa" is (so far) 0D and written in "controle" table of startfi file
     
    217213!      endif
    218214
    219 ! 3. Thermal inertia (note: it is declared in comsoil.h)
     215! 3. Thermal inertia (note: it is declared in comsoil_h)
    220216! ------------------
    221217
     
    306302        corner(2)=1
    307303        corner(3)=indextime
    308         edges(1)=ngridmx
    309         edges(2)=nsoilmx
     304        edges(1)=ngrid
     305        edges(2)=nsoil
    310306        edges(3)=1
    311307        !ierr=nf90_get_var(nid,nvarid,tsoil,corner,edges)
Note: See TracChangeset for help on using the changeset viewer.