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