/[MITgcm]/MITgcm/pkg/land/land_do_diags.F
ViewVC logotype

Annotation of /MITgcm/pkg/land/land_do_diags.F

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


Revision 1.10 - (hide annotations) (download)
Tue Dec 29 23:05:52 2009 UTC (14 years, 5 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint64y, checkpoint64x, checkpoint64z, checkpoint64q, checkpoint64p, checkpoint64s, checkpoint64r, checkpoint64u, checkpoint64t, checkpoint64w, checkpoint64v, checkpoint64i, checkpoint64h, checkpoint64k, checkpoint64j, checkpoint64m, checkpoint64l, checkpoint64o, checkpoint64n, checkpoint64a, checkpoint64c, checkpoint64b, checkpoint64e, checkpoint64d, checkpoint64g, checkpoint64f, checkpoint63p, checkpoint63q, checkpoint63r, checkpoint63s, checkpoint63l, checkpoint63m, checkpoint63n, checkpoint63o, checkpoint63h, checkpoint63i, checkpoint63j, checkpoint63k, checkpoint63d, checkpoint63e, checkpoint63f, checkpoint63g, checkpoint63a, checkpoint63b, checkpoint63c, checkpoint64, checkpoint65, checkpoint63, checkpoint66g, checkpoint66f, checkpoint66e, checkpoint66d, checkpoint66c, checkpoint66b, checkpoint66a, checkpoint66o, checkpoint66n, checkpoint66m, checkpoint66l, checkpoint66k, checkpoint66j, checkpoint66i, checkpoint66h, checkpoint65z, checkpoint65x, checkpoint65y, checkpoint65r, checkpoint65s, checkpoint65p, checkpoint65q, checkpoint65v, checkpoint65w, checkpoint65t, checkpoint65u, checkpoint65j, checkpoint65k, checkpoint65h, checkpoint65i, checkpoint65n, checkpoint65o, checkpoint65l, checkpoint65m, checkpoint65b, checkpoint65c, checkpoint65a, checkpoint65f, checkpoint65g, checkpoint65d, checkpoint65e, checkpoint62c, checkpoint62b, checkpoint62a, checkpoint62g, checkpoint62f, checkpoint62e, checkpoint62d, checkpoint62k, checkpoint62j, checkpoint62i, checkpoint62h, checkpoint62o, checkpoint62n, checkpoint62m, checkpoint62l, checkpoint62s, checkpoint62r, checkpoint62q, checkpoint62p, checkpoint62w, checkpoint62v, checkpoint62u, checkpoint62t, checkpoint62z, checkpoint62y, checkpoint62x, HEAD
Changes since 1.9: +18 -21 lines
use simpler (no level index) cumulative-time counter

1 jmc 1.10 C $Header: /u/gcmpack/MITgcm/pkg/land/land_do_diags.F,v 1.9 2006/08/04 22:13:31 jmc Exp $
2 jmc 1.1 C $Name: $
3    
4     #include "LAND_OPTIONS.h"
5    
6     CBOP
7     C !ROUTINE: LAND_DO_DIAGS
8     C !INTERFACE:
9 jmc 1.9 SUBROUTINE LAND_DO_DIAGS(
10 jmc 1.1 I land_frc, bi,bj, myTime, myIter, myThid )
11    
12     C !DESCRIPTION: \bv
13     C *==========================================================*
14     C | S/R LAND_DO_DIAGS
15     C | o Calculate Land diagnostics
16     C *==========================================================*
17 jmc 1.9 C | note: snap-shot output have been moved to a better place
18     C | and are now written from LAND_OUTPUT
19     C *==========================================================*
20 jmc 1.1 C \ev
21 jmc 1.9
22 jmc 1.1 C !USES:
23     IMPLICIT NONE
24    
25     C == Global variables ===
26     C-- size for MITgcm & Land package :
27     #include "LAND_SIZE.h"
28    
29     #include "EEPARAMS.h"
30     #include "PARAMS.h"
31     #include "LAND_PARAMS.h"
32     #include "LAND_VARS.h"
33     #include "LAND_TAVE.h"
34    
35     C !INPUT/OUTPUT PARAMETERS:
36     C == Routine arguments ==
37     C land_frc :: land fraction [0-1]
38     C bi,bj :: Tile index
39     C myTime :: Current time of simulation ( s )
40     C myIter :: Current iteration number in simulation
41     C myThid :: Number of this instance of the routine
42     _RS land_frc(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
43     INTEGER bi, bj, myIter, myThid
44     _RL myTime
45     CEOP
46    
47     #ifdef ALLOW_LAND
48    
49 jmc 1.3 LOGICAL DIFFERENT_MULTIPLE
50     EXTERNAL DIFFERENT_MULTIPLE
51 jmc 1.1
52 jmc 1.9 C == Local Variables ==
53 jmc 1.1
54     #ifdef ALLOW_LAND_TAVE
55    
56     IF (land_taveFreq.GT.0.) THEN
57    
58     C-- Sum ground Temp, soil moisture and Run-Off:
59 jmc 1.10 CALL TIMEAVE_CUMULATE(land_grTtave,land_groundT,land_nLev,
60     & land_deltaT, bi, bj, myThid )
61     CALL TIMEAVE_CUMULATE(land_entave, land_enthalp,land_nLev,
62     & land_deltaT, bi, bj, myThid )
63     CALL TIMEAVE_CUMULATE(land_grWtave,land_groundW,land_nLev,
64     & land_deltaT, bi, bj, myThid )
65     CALL TIMEAVE_CUMULATE(land_sTtave, land_skinT ,1,
66     & land_deltaT, bi, bj, myThid )
67     CALL TIMEAVE_CUMULATE(land_hStave, land_hSnow ,1,
68     & land_deltaT, bi, bj, myThid )
69     CALL TIMEAVE_CUMULATE(land_sAtave, land_snowAge,1,
70     & land_deltaT, bi, bj, myThid )
71     CALL TIMEAVE_CUMULATE(land_ROftave,land_runOff,1,
72     & land_deltaT, bi, bj, myThid )
73     CALL TIMEAVE_CUMULATE(land_eROtave,land_enRnOf,1,
74     & land_deltaT, bi, bj, myThid )
75 jmc 1.1
76     C- Keep record of how much time has been integrated over
77 jmc 1.10 land_timeAve(bi,bj) = land_timeAve(bi,bj)+land_deltaT
78 jmc 1.1
79     ENDIF
80    
81     #endif /* ALLOW_LAND_TAVE */
82    
83     C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|
84    
85     #ifdef ALLOW_DIAGNOSTICS
86    
87     IF ( useDiagnostics ) THEN
88    
89     CALL DIAGNOSTICS_FILL(land_runOff, 'RUNOFF ',0,1,
90     & 1,bi,bj,myThid)
91     CALL DIAGNOSTICS_FILL(land_enRnOf, 'EnRunOff',0,1,
92     & 1,bi,bj,myThid)
93     CALL DIAGNOSTICS_FILL(land_HeatFlx,'landHFlx',0,1,
94     & 1,bi,bj,myThid)
95     CALL DIAGNOSTICS_FILL(land_Pr_m_Ev,'landPmE ',0,1,
96     & 1,bi,bj,myThid)
97     CALL DIAGNOSTICS_FILL(land_EnWFlux,'ldEnFxPr',0,1,
98     & 1,bi,bj,myThid)
99    
100     ENDIF
101    
102     #endif /* ALLOW_DIAGNOSTICS */
103    
104     #endif /* ALLOW_LAND */
105    
106     RETURN
107     END

  ViewVC Help
Powered by ViewVC 1.1.22