/[MITgcm]/MITgcm/pkg/monitor/mon_printstats_rl.F
ViewVC logotype

Contents of /MITgcm/pkg/monitor/mon_printstats_rl.F

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Wed May 30 19:33:18 2001 UTC (22 years, 11 months ago) by adcroft
Branch: MAIN
Adding skeleton "monitor" routines. The default is to do it every
time-step. monitorFreq=0 disables.

1 C $Header: $
2 C $Name: $
3
4 #include "CPP_OPTIONS.h"
5
6 SUBROUTINE MON_PRINTSTATS_RL(
7 I myNr, arr, arrName,
8 I myThid )
9 C /==========================================================\
10 C | SUBROUTINE MON_PRINTSTATS_RL |
11 C | o Prints to STDOUT the bare statistics of global array |
12 C | "_RL arr" with label "arrName" |
13 C |==========================================================|
14 C \==========================================================/
15 IMPLICIT NONE
16
17 C === Global data ===
18 #include "SIZE.h"
19 #include "EEPARAMS.h"
20
21 C === Routine arguments ===
22 INTEGER myNr
23 _RL arr(1-OLx:sNx+OLx,1-OLy:sNy+OLy,myNr,nSx,nSy)
24 CHARACTER*(*) arrName
25 INTEGER myThid
26
27 C === Local variables ====
28 INTEGER bi,bj,I,J,K
29 INTEGER numPnts
30 LOGICAL noPnts
31 _RL theMin
32 _RL theMax
33 _RL theMean
34 _RL theSD
35
36 CALL MON_STATS_RL(
37 I myNr, arr,
38 O theMin,theMax,theMean,theSD,
39 I myThid )
40
41 _BEGIN_MASTER( myThid )
42 WRITE(*,'(A,A20,A,1PE22.14)')
43 & 'MON_PRINTSTATS: ',arrName,' min=',theMin
44 WRITE(*,'(A,A20,A,1PE22.14)')
45 & 'MON_PRINTSTATS: ',arrName,' max=',theMax
46 WRITE(*,'(A,A20,A,1PE22.14)')
47 & 'MON_PRINTSTATS: ',arrName,' mean=',theMean
48 WRITE(*,'(A,A20,A,1PE22.14)')
49 & 'MON_PRINTSTATS: ',arrName,' S.D.=',theSD
50 _END_MASTER( )
51
52 RETURN
53 END

  ViewVC Help
Powered by ViewVC 1.1.22