1 |
mlosch |
1.5 |
C $Header: /u/gcmpack/MITgcm/pkg/gchem/gchem_mon_print.F,v 1.4 2004/11/19 20:17:48 mlosch Exp $ |
2 |
stephd |
1.1 |
C $Name: $ |
3 |
|
|
|
4 |
|
|
#include "GCHEM_OPTIONS.h" |
5 |
|
|
|
6 |
stephd |
1.3 |
CBOP |
7 |
|
|
C !ROUTINE: GCHEM_PRINT |
8 |
stephd |
1.1 |
SUBROUTINE GCHEM_PRINT( |
9 |
|
|
I myNr, arr, arrName, |
10 |
|
|
I arrMask,arrhFac,arrArea,arrDr, |
11 |
|
|
I myThid ) |
12 |
|
|
C /==========================================================\ |
13 |
|
|
C | SUBROUTINE MON_PRINTSTATS_RL | |
14 |
|
|
C | o Prints to STDOUT the bare statistics of global array | |
15 |
|
|
C | "_RL arr" with label "arrName" | |
16 |
|
|
C |==========================================================| |
17 |
|
|
C \==========================================================/ |
18 |
|
|
IMPLICIT NONE |
19 |
|
|
|
20 |
|
|
C === Global data === |
21 |
|
|
#include "SIZE.h" |
22 |
|
|
#include "EEPARAMS.h" |
23 |
|
|
#include "MONITOR.h" |
24 |
|
|
|
25 |
|
|
C === Routine arguments === |
26 |
|
|
INTEGER myNr |
27 |
|
|
_RL arr(1-OLx:sNx+OLx,1-OLy:sNy+OLy,myNr,nSx,nSy) |
28 |
|
|
_RS arrMask(1-OLx:sNx+OLx,1-OLy:sNy+OLy,myNr,nSx,nSy) |
29 |
|
|
_RS arrhFac(1-OLx:sNx+OLx,1-OLy:sNy+OLy,myNr,nSx,nSy) |
30 |
|
|
_RS arrArea(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
31 |
|
|
_RS arrDr(myNr) |
32 |
|
|
CHARACTER*(*) arrName |
33 |
|
|
INTEGER myThid |
34 |
|
|
|
35 |
stephd |
1.2 |
#ifdef ALLOW_GCHEM |
36 |
|
|
|
37 |
stephd |
1.1 |
C === Local variables ==== |
38 |
|
|
_RL theMin |
39 |
|
|
_RL theMax |
40 |
|
|
_RL theMean |
41 |
|
|
_RL theSD |
42 |
|
|
_RL theDel2 |
43 |
|
|
_RL theVol |
44 |
|
|
_RL theTot |
45 |
|
|
|
46 |
|
|
CALL MON_STATS_RL( |
47 |
|
|
I myNr, arr, arrMask,arrhFac,arrArea,arrDr, |
48 |
|
|
O theMin,theMax,theMean,theSD,theDel2,theVol, |
49 |
|
|
I myThid ) |
50 |
|
|
|
51 |
|
|
theTot=theMean*theVol |
52 |
|
|
CALL MON_OUT_RL( arrName, theMax, mon_foot_max ,myThid) |
53 |
|
|
CALL MON_OUT_RL( arrName, theMin, mon_foot_min ,myThid) |
54 |
|
|
CALL MON_OUT_RL( arrName, theMean, mon_foot_mean ,myThid) |
55 |
stephd |
1.2 |
|
56 |
mlosch |
1.5 |
#endif /* ALLOW_GCHEM */ |
57 |
|
|
CML#endif |
58 |
stephd |
1.1 |
|
59 |
|
|
RETURN |
60 |
|
|
END |