/[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.9 - (hide annotations) (download)
Fri Aug 4 22:13:31 2006 UTC (17 years, 10 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint58u_post, checkpoint58w_post, checkpoint60, checkpoint61, checkpoint62, checkpoint58r_post, checkpoint58n_post, checkpoint58x_post, checkpoint58t_post, checkpoint58q_post, checkpoint59q, checkpoint59p, checkpoint59r, checkpoint59e, checkpoint59d, checkpoint59g, checkpoint59f, checkpoint59a, checkpoint59c, checkpoint59b, checkpoint59m, checkpoint59l, checkpoint59o, checkpoint59n, checkpoint59i, checkpoint59h, checkpoint59k, checkpoint59j, checkpoint59, checkpoint58o_post, checkpoint58y_post, checkpoint58v_post, checkpoint58s_post, checkpoint61f, checkpoint61g, checkpoint61d, checkpoint61e, checkpoint61b, checkpoint61c, checkpoint58p_post, checkpoint61a, checkpoint61n, checkpoint61o, checkpoint61l, checkpoint61m, checkpoint61j, checkpoint61k, checkpoint61h, checkpoint61i, checkpoint61v, checkpoint61w, checkpoint61t, checkpoint61u, checkpoint61r, checkpoint61s, checkpoint61p, checkpoint61q, checkpoint61z, checkpoint61x, checkpoint61y
Changes since 1.8: +8 -109 lines
move snap-shot out of land_do_diags.F into new S/R land_output.F
 with other output (monitor,time-ave) formerly in land_write_diags.F

1 jmc 1.9 C $Header: /u/gcmpack/MITgcm/pkg/land/land_do_diags.F,v 1.8 2006/03/01 23:13:28 edhill 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     INTEGER k
54 jmc 1.1
55     #ifdef ALLOW_LAND_TAVE
56    
57     IF (land_taveFreq.GT.0.) THEN
58    
59     C-- Sum ground Temp, soil moisture and Run-Off:
60     CALL TIMEAVE_CUMULATE(land_grTtave,land_groundT,land_nLev,
61     & land_deltaT, bi, bj, myThid )
62     CALL TIMEAVE_CUMULATE(land_entave, land_enthalp,land_nLev,
63     & land_deltaT, bi, bj, myThid )
64     CALL TIMEAVE_CUMULATE(land_grWtave,land_groundW,land_nLev,
65     & land_deltaT, bi, bj, myThid )
66     CALL TIMEAVE_CUMULATE(land_sTtave, land_skinT ,1,
67     & land_deltaT, bi, bj, myThid )
68     CALL TIMEAVE_CUMULATE(land_hStave, land_hSnow ,1,
69     & land_deltaT, bi, bj, myThid )
70     CALL TIMEAVE_CUMULATE(land_sAtave, land_snowAge,1,
71     & land_deltaT, bi, bj, myThid )
72     CALL TIMEAVE_CUMULATE(land_ROftave,land_runOff,1,
73     & land_deltaT, bi, bj, myThid )
74     CALL TIMEAVE_CUMULATE(land_eROtave,land_enRnOf,1,
75     & land_deltaT, bi, bj, myThid )
76    
77     C- Keep record of how much time has been integrated over
78     DO K=1,Nr
79     land_timeAve(k,bi,bj)=land_timeAve(k,bi,bj)+land_deltaT
80     ENDDO
81    
82     ENDIF
83    
84     #endif /* ALLOW_LAND_TAVE */
85    
86     C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|
87    
88     #ifdef ALLOW_DIAGNOSTICS
89    
90     IF ( useDiagnostics ) THEN
91    
92     CALL DIAGNOSTICS_FILL(land_runOff, 'RUNOFF ',0,1,
93     & 1,bi,bj,myThid)
94     CALL DIAGNOSTICS_FILL(land_enRnOf, 'EnRunOff',0,1,
95     & 1,bi,bj,myThid)
96     CALL DIAGNOSTICS_FILL(land_HeatFlx,'landHFlx',0,1,
97     & 1,bi,bj,myThid)
98     CALL DIAGNOSTICS_FILL(land_Pr_m_Ev,'landPmE ',0,1,
99     & 1,bi,bj,myThid)
100     CALL DIAGNOSTICS_FILL(land_EnWFlux,'ldEnFxPr',0,1,
101     & 1,bi,bj,myThid)
102    
103     ENDIF
104    
105     #endif /* ALLOW_DIAGNOSTICS */
106    
107     #endif /* ALLOW_LAND */
108    
109     RETURN
110     END

  ViewVC Help
Powered by ViewVC 1.1.22