/[MITgcm]/MITgcm/pkg/debug/debug_stats_rs.F
ViewVC logotype

Annotation of /MITgcm/pkg/debug/debug_stats_rs.F

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


Revision 1.1 - (hide annotations) (download)
Wed Jun 6 14:55:46 2001 UTC (23 years ago) by adcroft
Branch: MAIN
CVS Tags: checkpoint43a-release1mods, checkpoint40pre3, checkpoint40pre1, checkpoint40pre7, checkpoint40pre6, checkpoint40pre9, checkpoint40pre8, release1_b1, checkpoint43, icebear5, icebear4, icebear3, icebear2, checkpoint40pre2, release1-branch_tutorials, chkpt44a_post, checkpoint40pre4, chkpt44c_pre, ecco_c44_e19, ecco_c44_e16, release1-branch-end, checkpoint44b_post, ecco_ice2, ecco_ice1, ecco_c44_e22, ecco_c44_e25, checkpoint40pre5, chkpt44a_pre, ecco_c44_e23, ecco_c44_e20, ecco_c44_e21, ecco_c44_e26, ecco_c44_e27, ecco_c44_e24, ecco-branch-mod1, ecco-branch-mod2, ecco-branch-mod3, ecco-branch-mod4, ecco-branch-mod5, release1_beta1, checkpoint44b_pre, checkpoint42, checkpoint40, checkpoint41, checkpoint44, chkpt44c_post, release1-branch_branchpoint
Branch point for: c24_e25_ice, release1-branch, release1, ecco-branch, icebear, release1_coupled
Added a debugMode that uses same statistics stuff as monitor.F
Can be disabled with -DEXCLUDE_DEBUGMODE. Turn on at run-time
with debugMode=.true.  Default is enabled but off.

1 adcroft 1.1 C $Header: $
2     C $Name: $
3    
4     #include "CPP_OPTIONS.h"
5    
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     CALL MON_STATS_RS(
36     I myNr, arr,
37     O theMin,theMax,theMean,theSD,
38     I myThid )
39    
40     _BEGIN_MASTER( myThid )
41     WRITE(*,'(A,A30,A,1PE22.14)')
42     & 'DEBUG_STATS_RS: ',arrName,' min=',theMin
43     WRITE(*,'(A,A30,A,1PE22.14)')
44     & 'DEBUG_STATS_RS: ',arrName,' max=',theMax
45     WRITE(*,'(A,A30,A,1PE22.14)')
46     & 'DEBUG_STATS_RS: ',arrName,' mean=',theMean
47     WRITE(*,'(A,A30,A,1PE22.14)')
48     & 'DEBUG_STATS_RS: ',arrName,' S.D.=',theSD
49     _END_MASTER( )
50    
51     RETURN
52     END

  ViewVC Help
Powered by ViewVC 1.1.22