source: trunk/LMDZ.UNIVERSAL/libf/phygeneric/dimphy.F90 @ 1000

Last change on this file since 1000 was 908, checked in by emillour, 12 years ago

Generic/universal model:
-Add dimphy.F90
EM

File size: 775 bytes
Line 
1MODULE dimphy
2 
3  INTEGER,SAVE :: klon
4  INTEGER,SAVE :: kdlon
5  INTEGER,SAVE :: kfdia
6  INTEGER,SAVE :: kidia
7  INTEGER,SAVE :: klev ! number of atmospheric layers
8  INTEGER,SAVE :: klevp1
9  INTEGER,SAVE :: klevm1
10  INTEGER,SAVE :: nsoil ! number of surbsurface layers
11
12!$OMP THREADPRIVATE(klon,kfdia,kidia,kdlon)
13
14CONTAINS
15 
16  SUBROUTINE init_dimphy(klon0,klev0)
17  IMPLICIT NONE
18! to have access to nsoilmw ... should be improved...
19#include"dimensions.h"
20#include"dimphys.h" 
21    INTEGER, INTENT(in) :: klon0
22    INTEGER, INTENT(in) :: klev0
23   
24    klon=klon0
25   
26    kdlon=klon
27    kidia=1
28    kfdia=klon
29!$OMP MASTER
30    klev=klev0
31    klevp1=klev+1
32    klevm1=klev-1
33    nsoil=nsoilmx
34!$OMP END MASTER   
35   
36  END SUBROUTINE init_dimphy
37
38 
39END MODULE dimphy
Note: See TracBrowser for help on using the repository browser.