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

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

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


Revision 1.2 - (hide annotations) (download)
Tue Nov 23 20:20:19 2004 UTC (19 years, 6 months ago) by mlosch
Branch: MAIN
CVS Tags: checkpoint56b_post, checkpoint56a_post
Changes since 1.1: +6 -7 lines
  - set up forward_step for a call to gchem_forcing, that will replace
    gchem_forcing_int in ptracers_forcing
  - cleaning up, in particular CPP-flags and call to ptracer_statvars

1 mlosch 1.2 C $Header: /u/gcmpack/MITgcm/model/src/do_statevars_diags.F,v 1.1 2004/07/06 21:12:51 jmc Exp $
2 jmc 1.1 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 mlosch 1.2 # ifdef ALLOW_PTRACERS
60     IF ( usePTRACERS ) THEN
61     CALL PTRACERS_STATVARS(myTime, myIter, bi, bj, myThid)
62     ENDIF
63     # endif /* ALLOW_PTRACERS */
64 jmc 1.1 ENDIF
65    
66     C-- End of bi,bj loop
67     ENDDO
68     ENDDO
69     #endif /* ALLOW_TIMEAVE */
70    
71     #ifdef ALLOW_DIAGNOSTICS
72     C-- Fill-in Diagnostics pkg storage array (for state-variables)
73    
74     IF ( usediagnostics ) THEN
75     CALL DIAGNOSTICS_FILL_STATE(myThid)
76     # ifdef ALLOW_PTRACERS
77     IF (useptracers) THEN
78     CALL PTRACERS_FILL_DIAGNOSTICS(myThid)
79     ENDIF
80     # endif
81     ENDIf
82    
83     #endif /* ALLOW_DIAGNOSTICS */
84    
85     RETURN
86     END

  ViewVC Help
Powered by ViewVC 1.1.22