1 |
jmc |
1.5 |
C $Header: /u/gcmpack/models/MITgcmUV/pkg/monitor/mon_printstats_rl.F,v 1.4 2001/06/25 20:35:23 adcroft Exp $ |
2 |
adcroft |
1.2 |
C $Name: $ |
3 |
adcroft |
1.1 |
|
4 |
|
|
#include "CPP_OPTIONS.h" |
5 |
|
|
|
6 |
|
|
SUBROUTINE MON_PRINTSTATS_RL( |
7 |
jmc |
1.5 |
I myNr, arr, arrName, |
8 |
|
|
I arrMask,arrhFac,arrArea,arrDr, |
9 |
adcroft |
1.1 |
I myThid ) |
10 |
|
|
C /==========================================================\ |
11 |
|
|
C | SUBROUTINE MON_PRINTSTATS_RL | |
12 |
|
|
C | o Prints to STDOUT the bare statistics of global array | |
13 |
|
|
C | "_RL arr" with label "arrName" | |
14 |
|
|
C |==========================================================| |
15 |
|
|
C \==========================================================/ |
16 |
|
|
IMPLICIT NONE |
17 |
|
|
|
18 |
|
|
C === Global data === |
19 |
|
|
#include "SIZE.h" |
20 |
|
|
#include "EEPARAMS.h" |
21 |
cnh |
1.3 |
#include "MONITOR.h" |
22 |
adcroft |
1.1 |
|
23 |
|
|
C === Routine arguments === |
24 |
|
|
INTEGER myNr |
25 |
|
|
_RL arr(1-OLx:sNx+OLx,1-OLy:sNy+OLy,myNr,nSx,nSy) |
26 |
jmc |
1.5 |
_RS arrMask(1-OLx:sNx+OLx,1-OLy:sNy+OLy,myNr,nSx,nSy) |
27 |
|
|
_RS arrhFac(1-OLx:sNx+OLx,1-OLy:sNy+OLy,myNr,nSx,nSy) |
28 |
|
|
_RS arrArea(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
29 |
|
|
_RS arrDr(myNr) |
30 |
adcroft |
1.1 |
CHARACTER*(*) arrName |
31 |
|
|
INTEGER myThid |
32 |
|
|
|
33 |
|
|
C === Local variables ==== |
34 |
|
|
_RL theMin |
35 |
|
|
_RL theMax |
36 |
|
|
_RL theMean |
37 |
|
|
_RL theSD |
38 |
jmc |
1.5 |
_RL theDel2 |
39 |
adcroft |
1.1 |
|
40 |
|
|
CALL MON_STATS_RL( |
41 |
jmc |
1.5 |
I myNr, arr, arrMask,arrhFac,arrArea,arrDr, |
42 |
|
|
O theMin,theMax,theMean,theSD,theDel2, |
43 |
adcroft |
1.1 |
I myThid ) |
44 |
|
|
|
45 |
adcroft |
1.4 |
CALL MON_OUT_RL( arrName, theMax, mon_foot_max ,myThid) |
46 |
|
|
CALL MON_OUT_RL( arrName, theMin, mon_foot_min ,myThid) |
47 |
|
|
CALL MON_OUT_RL( arrName, theMean, mon_foot_mean ,myThid) |
48 |
|
|
CALL MON_OUT_RL( arrName, theSD, mon_foot_sd ,myThid) |
49 |
jmc |
1.5 |
CALL MON_OUT_RL( arrName, theDel2, mon_foot_del2 ,myThid) |
50 |
adcroft |
1.1 |
|
51 |
|
|
RETURN |
52 |
|
|
END |