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

Contents of /MITgcm/pkg/land/land_diagnostics.F

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


Revision 1.1 - (show annotations) (download)
Thu Jun 12 17:54:22 2003 UTC (20 years, 11 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint51k_post, checkpoint51l_post, checkpoint51j_post, checkpoint52l_pre, checkpoint52e_pre, hrcube4, hrcube5, checkpoint52j_post, checkpoint51o_pre, checkpoint52e_post, checkpoint51n_pre, checkpoint52d_pre, checkpoint51f_pre, branchpoint-genmake2, checkpoint52j_pre, branch-netcdf, checkpoint51r_post, checkpoint52b_pre, checkpoint51i_post, checkpoint51e_post, checkpoint51b_post, checkpoint51l_pre, checkpoint51c_post, checkpoint51o_post, checkpoint51q_post, checkpoint52k_post, checkpoint51, checkpoint52, checkpoint52d_post, checkpoint51b_pre, checkpoint52a_post, checkpoint52b_post, checkpoint52f_post, checkpoint52c_post, checkpoint51h_pre, checkpoint51g_post, ecco_c52_e35, checkpoint51f_post, checkpoint52a_pre, checkpoint51d_post, checkpoint51m_post, checkpoint51t_post, checkpoint50h_post, checkpoint52i_post, checkpoint51a_post, checkpoint51p_post, checkpoint51n_post, checkpoint51i_pre, checkpoint52i_pre, checkpoint51u_post, checkpoint52h_pre, checkpoint52f_pre, hrcube_1, hrcube_2, hrcube_3, checkpoint51s_post
Branch point for: netcdf-sm0, branch-genmake2, branch-nonh, tg2-branch, checkpoint51n_branch
A simple land model implemented for AIM (_v23) atmospheric physics

1 C $Header: $
2 C $Name: $
3
4 #include "LAND_OPTIONS.h"
5
6 CBOP
7 C !ROUTINE: LAND_DIAGNOSTICS
8 C !INTERFACE:
9 SUBROUTINE LAND_DIAGNOSTICS(
10 I land_frc, bi,bj, myTime, myIter, myThid )
11
12 C !DESCRIPTION: \bv
13 C *==========================================================*
14 C | S/R LAND_DIAGNOSTICS
15 C | o Calculate Land diagnostics
16 C *==========================================================*
17 C \ev
18
19 C !USES:
20 IMPLICIT NONE
21
22 C == Global variables ===
23 C-- size for MITgcm & Land package :
24 #include "LAND_SIZE.h"
25
26 #include "EEPARAMS.h"
27 #include "PARAMS.h"
28 #include "LAND_PARAMS.h"
29 #include "LAND_VARS.h"
30 #include "LAND_TAVE.h"
31
32 LOGICAL DIFFERENT_MULTIPLE
33 EXTERNAL DIFFERENT_MULTIPLE
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 C == Local Variables ==
50 INTEGER i,j,k, iterWr
51 CHARACTER*(MAX_LEN_MBUF) suff
52
53 C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|
54
55 IF (
56 & DIFFERENT_MULTIPLE(land_diagFreq,myTime+land_deltaT,myTime)
57 & .OR. myTime+land_deltaT .EQ. endTime
58 & ) THEN
59 iterWr = myIter+1
60 WRITE(suff,'(I10.10)') iterWr
61
62 c _BARRIER
63 c _BEGIN_MASTER( myThid )
64
65 DO k=1,land_nLev
66 C-- Write ground Temp and soil moisture :
67 CALL WRITE_LOCAL_RL('land_groundT','I10',1,
68 & land_groundT(1-OLx,1-OLy,k,bi,bj),bi,bj,k,iterWr,myThid)
69 CALL WRITE_LOCAL_RL('land_groundW','I10',1,
70 & land_groundW(1-OLx,1-OLy,k,bi,bj),bi,bj,k,iterWr,myThid)
71 ENDDO
72 CALL WRITE_LOCAL_RL('land_RunOff','I10',1,
73 & land_runOff(1-OLx,1-OLy,bi,bj),bi,bj,1,iterWr,myThid)
74
75 c _END_MASTER( myThid )
76 c _BARRIER
77 C--
78 ENDIF
79
80 C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|
81
82 #ifdef ALLOW_LAND_TAVE
83
84 IF (land_taveFreq.GT.0.) THEN
85
86 C-- Sum ground Temp, soil moisture and Run-Off:
87 CALL TIMEAVE_CUMULATE(land_grTtave,land_groundT,land_nLev,
88 & land_deltaT, bi, bj, myThid )
89 CALL TIMEAVE_CUMULATE(land_grWtave,land_groundW,land_nLev,
90 & land_deltaT, bi, bj, myThid )
91 CALL TIMEAVE_CUMULATE(land_ROftave,land_runOff,1,
92 & land_deltaT, bi, bj, myThid )
93
94 C- Keep record of how much time has been integrated over
95 DO K=1,Nr
96 land_timeAve(k,bi,bj)=land_timeAve(k,bi,bj)+land_deltaT
97 ENDDO
98
99 ENDIF
100
101 #endif /* ALLOW_LAND_TAVE */
102
103 #endif /* ALLOW_LAND */
104
105 RETURN
106 END
107

  ViewVC Help
Powered by ViewVC 1.1.22