Last change
on this file since 1047 was
1047,
checked in by emillour, 11 years ago
|
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 size:
984 bytes
|
Line | |
---|
1 | module comsoil_h |
---|
2 | |
---|
3 | implicit none |
---|
4 | ! nsoilmx : number of subterranean layers |
---|
5 | !EM: old soil routine: integer, parameter :: nsoilmx = 10 |
---|
6 | integer, parameter :: nsoilmx = 18 |
---|
7 | |
---|
8 | real,save,allocatable,dimension(:) :: layer ! soil layer depths |
---|
9 | real,save,allocatable,dimension(:) :: mlayer ! soil mid-layer depths |
---|
10 | real,save,allocatable,dimension(:,:) :: inertiedat ! soil thermal inertia |
---|
11 | real,save :: volcapa ! soil volumetric heat capacity |
---|
12 | ! NB: volcapa is read fromn control(35) from physicq start file |
---|
13 | ! in physdem (or set via tabfi, or initialized in |
---|
14 | ! soil_settings.F) |
---|
15 | |
---|
16 | contains |
---|
17 | |
---|
18 | subroutine ini_comsoil_h(ngrid) |
---|
19 | |
---|
20 | implicit none |
---|
21 | integer,intent(in) :: ngrid ! number of atmospheric columns |
---|
22 | |
---|
23 | allocate(layer(nsoilmx)) !soil layer depths |
---|
24 | allocate(mlayer(0:nsoilmx-1)) ! soil mid-layer depths |
---|
25 | allocate(inertiedat(ngrid,nsoilmx)) ! soil thermal inertia |
---|
26 | |
---|
27 | end subroutine ini_comsoil_h |
---|
28 | |
---|
29 | end module comsoil_h |
---|
Note: See
TracBrowser
for help on using the repository browser.