/[MITgcm]/MITgcm/model/src/do_statevars_diags.F
ViewVC logotype

Contents of /MITgcm/model/src/do_statevars_diags.F

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


Revision 1.1 - (show annotations) (download)
Tue Jul 6 21:12:51 2004 UTC (19 years, 10 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint55c_post, checkpoint54e_post, checkpoint55d_pre, checkpoint55j_post, checkpoint55h_post, checkpoint54b_post, checkpoint55b_post, checkpoint54d_post, checkpoint55, checkpoint54f_post, checkpoint55g_post, checkpoint55f_post, checkpoint55i_post, checkpoint56, checkpoint55e_post, checkpoint55a_post, checkpoint54c_post, checkpoint55d_post
put atmospheric physics & state-vars diagnostics calls in 2 dedicated S/R.

1 C $Header: $
2 C $Name: $
3
4 #include "PACKAGES_CONFIG.h"
5 #include "CPP_OPTIONS.h"
6 #ifdef ALLOW_GCHEM
7 #include "GCHEM_OPTIONS.h"
8 #endif
9
10
11 CBOP
12 C !ROUTINE: DO_STATEVARS_DIAGS
13 C !INTERFACE:
14 SUBROUTINE DO_STATEVARS_DIAGS( myTime, myIter, myThid )
15 C !DESCRIPTION: \bv
16 C *==========================================================*
17 C | SUBROUTINE DO_STATEVARS_DIAGS
18 C | o Controlling routine for state variables diagnostics
19 C *==========================================================*
20 C | Computing statistics of the model state (state-variables)
21 C | is done at this level (after updating the halo region),
22 C | as opposed to other diagnostic calls (fluxes, tendencies)
23 C | that remain within the computation sequence.
24 C | Note: IO are not supposed to be done at this level
25 C | but later (in DO_THE_MODEL_IO)
26 C *==========================================================*
27 C \ev
28
29 C !USES:
30 IMPLICIT NONE
31 C == Global variables ===
32 #include "SIZE.h"
33 #include "EEPARAMS.h"
34 #include "PARAMS.h"
35
36 C !INPUT/OUTPUT PARAMETERS:
37 C == Routine arguments ==
38 C myTime - Current time of simulation ( s )
39 C myIter - Iteration number
40 C myThid - Thread number for this instance of the routine.
41 _RL myTime
42 INTEGER myIter
43 INTEGER myThid
44
45 CEOP
46
47 C !LOCAL VARIABLES:
48 C == Local variables
49 INTEGER bi,bj
50
51 #ifdef ALLOW_TIMEAVE
52 C-- Fill-in TimeAve pkg diagnostics (for state-variables)
53
54 DO bj=myByLo(myThid),myByHi(myThid)
55 DO bi=myBxLo(myThid),myBxHi(myThid)
56
57 IF ( taveFreq.GT.0. ) THEN
58 CALL TIMEAVE_STATVARS(myTime, myIter, bi, bj, myThid)
59 ENDIF
60
61 #ifdef ALLOW_PTRACERS
62 #ifndef PTRACERS_SEPARATE_FORCING
63 CALL PTRACERS_STATVARS(myTime, myIter, bi, bj, myThid)
64 #endif
65 #endif
66
67 C-- End of bi,bj loop
68 ENDDO
69 ENDDO
70 #endif /* ALLOW_TIMEAVE */
71
72 #ifdef ALLOW_DIAGNOSTICS
73 C-- Fill-in Diagnostics pkg storage array (for state-variables)
74
75 IF ( usediagnostics ) THEN
76 CALL DIAGNOSTICS_FILL_STATE(myThid)
77 # ifdef ALLOW_PTRACERS
78 IF (useptracers) THEN
79 CALL PTRACERS_FILL_DIAGNOSTICS(myThid)
80 ENDIF
81 # endif
82 ENDIf
83
84 #endif /* ALLOW_DIAGNOSTICS */
85
86 RETURN
87 END

  ViewVC Help
Powered by ViewVC 1.1.22