1 |
jmc |
1.1 |
C $Header: /u/gcmpack/MITgcm/pkg/diagnostics/diagnostics_init_vals.F,v 1.25 2004/11/23 01:01:52 jmc Exp $ |
2 |
|
|
C $Name: $ |
3 |
|
|
|
4 |
|
|
#include "DIAG_OPTIONS.h" |
5 |
|
|
|
6 |
|
|
C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----| |
7 |
|
|
CBOP 0 |
8 |
|
|
C !ROUTINE: DIAGNOSTICS_MAIN_INIT |
9 |
|
|
|
10 |
|
|
C !INTERFACE: |
11 |
|
|
SUBROUTINE DIAGNOSTICS_MAIN_INIT( myThid ) |
12 |
|
|
|
13 |
|
|
C !DESCRIPTION: |
14 |
|
|
C Initialize available diagnostics list for variables of the main code |
15 |
|
|
C (not part of a package): set the following attributes: |
16 |
|
|
C name (=cdiag), parsing code (=gdiag), units (=udiag), and title (=tdiag) |
17 |
|
|
C Notes: 1) diagnostics defined here do not require any EQUIVALENCE |
18 |
|
|
C since they get filled-in with S/R FILL_DIAGNOSTICS |
19 |
|
|
C 2) GDIAG is defined as character*16 and can be to character*1 |
20 |
|
|
C parse(16) with the following codes currently defined: |
21 |
|
|
|
22 |
|
|
C \begin{center} |
23 |
|
|
C \begin{tabular}[h]{|c|c|}\hline |
24 |
|
|
C \textbf{Positions} & \textbf{Characters} |
25 |
|
|
C & \textbf{Meanings} \\\hline |
26 |
|
|
C parse(1) & S & scalar \\ |
27 |
|
|
C & U & U-vector component \\ |
28 |
|
|
C & V & V-vector component \\ |
29 |
|
|
C parse(2) & U & C-grid U-Point \\ |
30 |
|
|
C & V & C-grid V-Point \\ |
31 |
|
|
C & M & C-grid Mass Point \\ |
32 |
|
|
C & Z & C-grid Corner Point \\ |
33 |
|
|
C parse(3) & -- & --Unused-- \\ |
34 |
|
|
C parse(4) & P & positive definite \\ |
35 |
|
|
C parse(5 ) & C & with counter array \\ |
36 |
|
|
C & D & disable an array for output \\ |
37 |
|
|
C parse(6--8) & '123' & 3-digit mate number \\ |
38 |
|
|
C parse(9) & U & model-level plus 1/2 \\ |
39 |
|
|
C & M & model-level middle \\ |
40 |
|
|
C & L & model-level minus 1/2 \\ |
41 |
|
|
C parse(10) & 0 & levels = 0 \\ |
42 |
|
|
C & 1 & levels = 1 \\ |
43 |
|
|
C & R & levels = Nr \\ |
44 |
|
|
C & L & levels = MAX(Nr,NrPhys) \\ |
45 |
|
|
C & M & levels = MAX(Nr,NrPhys) - 1 \\ |
46 |
|
|
C \end{tabular} |
47 |
|
|
C \end{center} |
48 |
|
|
|
49 |
|
|
C !USES: |
50 |
|
|
IMPLICIT NONE |
51 |
|
|
#include "SIZE.h" |
52 |
|
|
#include "EEPARAMS.h" |
53 |
|
|
c #include "EESUPPORT.h" |
54 |
|
|
#include "PARAMS.h" |
55 |
|
|
|
56 |
|
|
C !INPUT PARAMETERS: |
57 |
|
|
INTEGER myThid |
58 |
|
|
CEOP |
59 |
|
|
|
60 |
|
|
C !LOCAL VARIABLES: |
61 |
|
|
CHARACTER*8 diagName |
62 |
|
|
CHARACTER*16 diagCode |
63 |
|
|
CHARACTER*16 diagUnits |
64 |
|
|
CHARACTER*(80) diagTitle |
65 |
|
|
|
66 |
|
|
C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----| |
67 |
|
|
C For each output variable, |
68 |
|
|
C specify Name (cdiag, 8c), Descriptions (tdiag, *c), Units (udiag, 16c) |
69 |
|
|
C and Type/Parms (location on C grid, 2D/3D, ...) (gdiag, 16c) |
70 |
|
|
C---------------------------------------------------------------------- |
71 |
|
|
|
72 |
|
|
diagName = 'DRHODR ' |
73 |
|
|
diagTitle = 'Stratification: d.Sigma/dr (kg/m3/r_unit) ' |
74 |
|
|
diagUnits = 'kg/m4 ' |
75 |
|
|
diagCode = 'SM LR ' |
76 |
|
|
CALL DIAGNOSTICS_ADD2LIST( |
77 |
|
|
I diagName, diagCode, diagUnits, diagTitle, myThid ) |
78 |
|
|
|
79 |
|
|
diagName = 'DETADT2 ' |
80 |
|
|
diagTitle = 'Square of Eta (Surf.P,SSH) Tendency ((r_unit/s)^2)' |
81 |
|
|
diagUnits = 'm2 or Pa2 /sec2 ' |
82 |
|
|
diagCode = 'SM M1 ' |
83 |
|
|
CALL DIAGNOSTICS_ADD2LIST( |
84 |
|
|
I diagName, diagCode, diagUnits, diagTitle, myThid ) |
85 |
|
|
|
86 |
|
|
C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----| |
87 |
|
|
|
88 |
|
|
RETURN |
89 |
|
|
END |