Last change
on this file since 3436 was
3175,
checked in by emillour, 11 months ago
|
Pluto PCM:
Add the old Pluto LMDZ for reference (required prior step to making
an LMDZ.PLUTO using the same framework as the other physics packages).
TB+EM
|
File size:
1.3 KB
|
Line | |
---|
1 | subroutine testconservmass2d(ngrid,surfmass) |
---|
2 | |
---|
3 | use comgeomfi_h |
---|
4 | implicit none |
---|
5 | |
---|
6 | !================================================================== |
---|
7 | ! Purpose |
---|
8 | ! ------- |
---|
9 | ! Test conservation of n2 mass |
---|
10 | ! |
---|
11 | ! Inputs |
---|
12 | ! ------ |
---|
13 | ! ngrid Number of vertical columns |
---|
14 | ! nlayer Number of layers |
---|
15 | ! pplev(ngrid,nlayer+1) Pressure levels |
---|
16 | ! surfmass |
---|
17 | ! |
---|
18 | ! Authors |
---|
19 | ! ------- |
---|
20 | ! Tanguy Bertrand 2015 |
---|
21 | ! |
---|
22 | !================================================================== |
---|
23 | |
---|
24 | #include "dimensions.h" |
---|
25 | #include "dimphys.h" |
---|
26 | #include "comcstfi.h" |
---|
27 | #include "surfdat.h" |
---|
28 | #include "comvert.h" |
---|
29 | #include "callkeys.h" |
---|
30 | #include "tracer.h" |
---|
31 | |
---|
32 | !----------------------------------------------------------------------- |
---|
33 | ! Arguments |
---|
34 | |
---|
35 | INTEGER ngrid |
---|
36 | REAL surfmass(ngrid) |
---|
37 | |
---|
38 | ! LOCAL VARIABLES |
---|
39 | INTEGER ig,iq |
---|
40 | |
---|
41 | ! OUTPUT |
---|
42 | REAL surfmasstot |
---|
43 | !----------------------------------------------------------------------- |
---|
44 | |
---|
45 | |
---|
46 | surfmasstot=0.0 |
---|
47 | |
---|
48 | do ig = 1, ngrid |
---|
49 | |
---|
50 | surfmasstot= surfmasstot + surfmass(ig)*area(ig) |
---|
51 | |
---|
52 | enddo |
---|
53 | |
---|
54 | surfmasstot = surfmasstot/totarea |
---|
55 | |
---|
56 | ! print*,'-------------------------------------------' |
---|
57 | print*,'Total mass surface : ',surfmasstot,' kg m-2' |
---|
58 | |
---|
59 | end subroutine testconservmass2d |
---|
60 | |
---|
Note: See
TracBrowser
for help on using the repository browser.