source: trunk/LMDZ.GENERIC/libf/phystd/surface_nature.F @ 1371

Last change on this file since 1371 was 1308, checked in by emillour, 12 years ago

Generic GCM:
Some cleanup to simplify dynamics/physics interactions by getting rid
of dimphys.h (i.e. the nlayermx parameter) and minimizing use of
dimension.h in the physics.
EM

File size: 1.3 KB
RevLine 
[787]1      SUBROUTINE surface_nature(ngrid,nq,obliquit,qsurf,qsurfliquid
[253]2     &   ,qsurfsnow,rnat,oceanarea)
[787]3
4      USE surfdat_h
5      USE comsoil_h
6      USE comgeomfi_h
7      USE tracer_h
8
[253]9      IMPLICIT none
10
11!==================================================================
12!     
13!     Purpose
14!     -------
15!     Defines a few things
16!     
17!     Authors
18!     -------
19!     B. Charnay (2010)
20!     
21!     Called by
22!     ---------
23!     physiq.F
24!     
25!     Calls
26!     -----
27!     none
28!
29!     Notes
30!     -----
31!     rnat is terrain type: 0-ocean; 1-continent; 2-continental ice
32!     
33!==================================================================
34
[1308]35!#include "dimensions.h"
36!#include "dimphys.h"
[253]37#include "comcstfi.h"
38#include "callkeys.h"
39
[787]40        integer ngrid,nq
41
42        REAL qsurf(ngrid,nq),ps(ngrid)
43        REAL qsurfliquid(ngrid)
44        REAL qsurfsnow(ngrid)
[253]45        INTEGER iq, ig
[787]46        INTEGER rnat(ngrid)
[253]47        REAL oceanarea
48        REAL obliquit
49
[787]50        do ig=1,ngrid
[253]51           rnat(ig)=1
52           dryness(ig)=1        !(coefficient for evaporation)
53           if (inertiedat(ig,1).gt.1E4) then
54              rnat(ig)=0
55           end if
56        end do
57
58! surface of all the oceans
59       
60        oceanarea=0.
[787]61        do ig=1,ngrid
[253]62           if (rnat(ig).eq.0)then
63              oceanarea=oceanarea+area(ig)
64           end if
65        enddo
66
67        return
68        end
69
Note: See TracBrowser for help on using the repository browser.