1 |
heimbach |
1.5 |
C $Header: /u/gcmpack/MITgcm/pkg/debug/debug_stats_rs.F,v 1.4 2004/12/14 16:54:08 edhill Exp $ |
2 |
heimbach |
1.2 |
C $Name: $ |
3 |
adcroft |
1.1 |
|
4 |
edhill |
1.3 |
#include "DEBUG_OPTIONS.h" |
5 |
adcroft |
1.1 |
|
6 |
|
|
SUBROUTINE DEBUG_STATS_RS( |
7 |
|
|
I myNr, arr, arrName, |
8 |
|
|
I myThid ) |
9 |
|
|
C /==========================================================\ |
10 |
|
|
C | SUBROUTINE DEBUG_STATS_RS | |
11 |
|
|
C | o Prints to STDOUT the bare statistics of global array | |
12 |
|
|
C | "_RS arr" with label "arrName" | |
13 |
|
|
C | o This is an exact copy of MON_PRINTSTATS_RS but with | |
14 |
|
|
C | a different label at left of screen | |
15 |
|
|
C |==========================================================| |
16 |
|
|
C \==========================================================/ |
17 |
|
|
IMPLICIT NONE |
18 |
|
|
|
19 |
|
|
C === Global data === |
20 |
|
|
#include "SIZE.h" |
21 |
|
|
#include "EEPARAMS.h" |
22 |
|
|
|
23 |
|
|
C === Routine arguments === |
24 |
|
|
INTEGER myNr |
25 |
|
|
_RS arr(1-OLx:sNx+OLx,1-OLy:sNy+OLy,myNr,nSx,nSy) |
26 |
|
|
CHARACTER*(*) arrName |
27 |
|
|
INTEGER myThid |
28 |
|
|
|
29 |
|
|
C === Local variables ==== |
30 |
|
|
_RL theMin |
31 |
|
|
_RL theMax |
32 |
|
|
_RL theMean |
33 |
|
|
_RL theSD |
34 |
|
|
|
35 |
heimbach |
1.2 |
CALL DEBUG_FLD_STATS_RS( |
36 |
adcroft |
1.1 |
I myNr, arr, |
37 |
|
|
O theMin,theMax,theMean,theSD, |
38 |
|
|
I myThid ) |
39 |
|
|
|
40 |
|
|
_BEGIN_MASTER( myThid ) |
41 |
heimbach |
1.5 |
WRITE(standardmessageunit,'(A,A30,A,1PE22.14)') |
42 |
adcroft |
1.1 |
& 'DEBUG_STATS_RS: ',arrName,' min=',theMin |
43 |
heimbach |
1.5 |
WRITE(standardmessageunit,'(A,A30,A,1PE22.14)') |
44 |
adcroft |
1.1 |
& 'DEBUG_STATS_RS: ',arrName,' max=',theMax |
45 |
heimbach |
1.5 |
WRITE(standardmessageunit,'(A,A30,A,1PE22.14)') |
46 |
adcroft |
1.1 |
& 'DEBUG_STATS_RS: ',arrName,' mean=',theMean |
47 |
heimbach |
1.5 |
WRITE(standardmessageunit,'(A,A30,A,1PE22.14)') |
48 |
adcroft |
1.1 |
& 'DEBUG_STATS_RS: ',arrName,' S.D.=',theSD |
49 |
edhill |
1.4 |
_END_MASTER( myThid ) |
50 |
adcroft |
1.1 |
|
51 |
|
|
RETURN |
52 |
|
|
END |