/[MITgcm]/MITgcm/pkg/aim_v23/aim_land_impl.F
ViewVC logotype

Annotation of /MITgcm/pkg/aim_v23/aim_land_impl.F

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


Revision 1.3 - (hide annotations) (download)
Thu Jun 24 23:43:11 2004 UTC (20 years ago) by jmc
Branch: MAIN
CVS Tags: checkpoint64y, checkpoint64x, checkpoint58l_post, checkpoint64z, checkpoint57t_post, checkpoint64q, checkpoint64p, checkpoint64s, checkpoint64r, checkpoint64u, checkpoint64t, checkpoint64w, checkpoint64v, checkpoint64i, checkpoint64h, checkpoint64k, checkpoint64j, checkpoint64m, checkpoint64l, checkpoint64o, checkpoint64n, checkpoint64a, checkpoint57o_post, checkpoint64c, checkpoint64b, checkpoint64e, checkpoint64d, checkpoint64g, checkpoint64f, checkpoint58e_post, checkpoint57v_post, checkpoint58u_post, checkpoint58w_post, checkpoint54a_pre, checkpoint57m_post, checkpoint55c_post, checkpoint54e_post, checkpoint57s_post, checkpoint54a_post, checkpoint63p, checkpoint63q, checkpoint63r, checkpoint63s, checkpoint63l, checkpoint63m, checkpoint63n, checkpoint63o, checkpoint63h, checkpoint63i, checkpoint63j, checkpoint63k, checkpoint63d, checkpoint63e, checkpoint63f, checkpoint63g, checkpoint63a, checkpoint63b, checkpoint63c, checkpoint57k_post, checkpoint55d_pre, checkpoint57d_post, checkpoint57g_post, checkpoint64, checkpoint65, checkpoint60, checkpoint61, checkpoint62, checkpoint63, checkpoint57b_post, checkpoint57c_pre, checkpoint58r_post, checkpoint55j_post, checkpoint56b_post, checkpoint57i_post, checkpoint57y_post, checkpoint57e_post, checkpoint66g, checkpoint66f, checkpoint66e, checkpoint66d, checkpoint66c, checkpoint66b, checkpoint66a, checkpoint66o, checkpoint66n, checkpoint66m, checkpoint66l, checkpoint66k, checkpoint66j, checkpoint66i, checkpoint66h, checkpoint55h_post, checkpoint58n_post, checkpoint58x_post, checkpoint57g_pre, checkpoint54b_post, checkpoint55b_post, checkpoint58t_post, checkpoint58h_post, checkpoint65z, checkpoint65x, checkpoint65y, checkpoint54d_post, checkpoint65r, checkpoint65s, checkpoint65p, checkpoint65q, checkpoint65v, checkpoint65w, checkpoint65t, checkpoint65u, checkpoint65j, checkpoint65k, checkpoint65h, checkpoint65i, checkpoint65n, checkpoint65o, checkpoint65l, checkpoint65m, checkpoint65b, checkpoint65c, checkpoint65a, checkpoint65f, checkpoint65g, checkpoint65d, checkpoint65e, checkpoint56c_post, checkpoint57y_pre, checkpoint55, checkpoint57f_pre, checkpoint57a_post, checkpoint54, checkpoint58q_post, checkpoint54f_post, checkpoint59q, checkpoint59p, checkpoint55g_post, checkpoint59r, checkpoint58j_post, checkpoint59e, checkpoint59d, checkpoint59g, checkpoint59f, checkpoint59a, checkpoint55f_post, checkpoint59c, checkpoint59b, checkpoint59m, checkpoint59l, checkpoint59o, checkpoint59n, checkpoint59i, checkpoint59h, checkpoint59k, checkpoint59j, checkpoint57r_post, checkpoint59, checkpoint58, checkpoint57a_pre, checkpoint55i_post, checkpoint57, checkpoint56, eckpoint57e_pre, checkpoint57h_done, checkpoint58f_post, checkpoint53g_post, checkpoint57x_post, checkpoint57n_post, checkpoint58d_post, checkpoint58c_post, checkpoint57w_post, checkpoint57p_post, checkpint57u_post, checkpoint57f_post, checkpoint58a_post, checkpoint58i_post, checkpoint57q_post, checkpoint58g_post, checkpoint58o_post, checkpoint57z_post, checkpoint62c, checkpoint62b, checkpoint62a, checkpoint62g, checkpoint62f, checkpoint62e, checkpoint62d, checkpoint62k, checkpoint62j, checkpoint62i, checkpoint62h, checkpoint62o, checkpoint62n, checkpoint62m, checkpoint62l, checkpoint62s, checkpoint62r, checkpoint62q, checkpoint62p, checkpoint62w, checkpoint62v, checkpoint62u, checkpoint62t, checkpoint57c_post, checkpoint62z, checkpoint62y, checkpoint62x, checkpoint58y_post, checkpoint55e_post, checkpoint58k_post, checkpoint58v_post, checkpoint53f_post, checkpoint55a_post, checkpoint54c_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, checkpoint57j_post, checkpoint61z, checkpoint61x, checkpoint61y, checkpoint58b_post, checkpoint57h_pre, checkpoint58m_post, checkpoint57l_post, checkpoint57h_post, checkpoint56a_post, checkpoint55d_post, HEAD
Changes since 1.2: +26 -12 lines
- include stability function into surf.Flux derivative relative to Ts
- calculate clear-sky radiation & surface temp. change
- update diagnostics (snap-shot, timeave & diagnostics)

1 jmc 1.3 C $Header: /u/gcmpack/MITgcm/pkg/aim_v23/aim_land_impl.F,v 1.2 2004/05/21 17:43:04 jmc Exp $
2 jmc 1.1 C $Name: $
3    
4     #include "AIM_OPTIONS.h"
5     #ifdef ALLOW_LAND
6     #include "LAND_OPTIONS.h"
7     #endif
8    
9     CBOP
10     C !ROUTINE: AIM_LAND_IMPL
11     C !INTERFACE:
12     SUBROUTINE AIM_LAND_IMPL(
13 jmc 1.2 I FMASK, dTskin,
14 jmc 1.3 I Shf0, dShf, Evp0, dEvp, Slr0, dSlr,
15 jmc 1.2 U sFlx,
16 jmc 1.3 U Tsurf, SHF, EVAP, SLRU,
17     O dTsurf,
18 jmc 1.1 I bi, bj, myTime, myIter, myThid)
19    
20     C !DESCRIPTION: \bv
21     C *==========================================================*
22     C | S/R AIM_LAND_IMPL
23     C | o AIM Interface to the implicit part of the land model
24     C *==========================================================*
25     C \ev
26    
27     C !USES:
28     IMPLICIT NONE
29    
30     C == Global variables ===
31     C-- size for MITgcm & Physics package :
32     #include "AIM_SIZE.h"
33    
34     #include "EEPARAMS.h"
35     #include "PARAMS.h"
36    
37     #include "AIM_FFIELDS.h"
38     #include "com_physcon.h"
39     c #include "com_physvar.h"
40    
41     #ifdef ALLOW_LAND
42     #include "LAND_SIZE.h"
43     #include "LAND_PARAMS.h"
44     #include "LAND_VARS.h"
45     #endif
46    
47     C !INPUT/OUTPUT PARAMETERS:
48     C == Routine arguments ==
49     C FMASK :: land fraction [0-1]
50     C dTskin :: temp. correction for daily-cycle heating [K]
51 jmc 1.3 C Shf0 :: sensible heat flux over freezing surf.
52     C dShf :: sensible heat flux derivative relative to surf. temp
53 jmc 1.1 C Evp0 :: evaporation computed over freezing surface (Ts=0.oC)
54     C dEvp :: evaporation derivative relative to surf. temp
55     C Slr0 :: upward long wave radiation over freezing surf.
56 jmc 1.2 C dSlr :: upward long wave derivative relative to surf. temp
57     C sFlx :: net surface flux (+=down) function of surf. temp Ts:
58     C 0: Flux(Ts=0.oC) ; 1: Flux(Ts^n) ; 2: d.Flux/d.Ts(Ts^n)
59 jmc 1.1 C Tsurf :: surface temperature (2-dim)
60 jmc 1.3 C SHF :: sensible heat flux (2-dim)
61 jmc 1.1 C EVAP :: evaporation [g/(m^2 s)] (2-dim)
62     C SLRU :: sfc lw radiation (upward flux) (2-dim)
63 jmc 1.3 C dTsurf :: surf. temp change after 1 implicit time step [oC]
64 jmc 1.1 C bi,bj :: Tile index
65     C myTime :: Current time of simulation ( s )
66     C myIter :: Current iteration number in simulation
67     C myThid :: Number of this instance of the routine
68 jmc 1.2 _RL FMASK(NGP), dTskin(NGP)
69 jmc 1.3 _RL Shf0(NGP), dShf(NGP), Evp0(NGP), dEvp(NGP)
70     _RL Slr0(NGP), dSlr(NGP), sFlx(NGP,0:2)
71     _RL Tsurf(NGP), SHF(NGP), EVAP(NGP), SLRU(NGP)
72     _RL dTsurf(NGP)
73 jmc 1.1 INTEGER bi, bj, myIter, myThid
74     _RL myTime
75     CEOP
76    
77     #ifdef ALLOW_AIM
78     #ifdef ALLOW_LAND
79     C == Local variables ==
80     C i,j, I2 :: loop counters
81     INTEGER i,j, I2
82    
83 jmc 1.2 IF ( useLand .AND. land_impl_grT ) THEN
84 jmc 1.1
85 jmc 1.2 C- Initialisation :
86 jmc 1.1 DO j=1,sNy
87     DO i=1,sNx
88     I2 = i+(j-1)*sNx
89    
90     C- initialize temp. changes and fresh water flux :
91     dTsurf(I2) = 0.
92     land_Pr_m_Ev(i,j,bi,bj) = 0. _d 0
93 jmc 1.2 land_EnWFlux(i,j,bi,bj) = 0. _d 0
94 jmc 1.1
95     ENDDO
96     ENDDO
97    
98 jmc 1.2 IF ( land_calc_snow ) THEN
99     C- Evap of snow: substract Latent Heat of freezing from heatFlux
100     DO j=1,sNy
101     DO i=1,sNx
102     I2 = i+(j-1)*sNx
103     IF ( land_skinT(i,j,bi,bj).LT. 0. _d 0 .OR.
104     & land_hSnow(i,j,bi,bj).GT. 0. _d 0 ) THEN
105     sFlx(I2,0) = sFlx(I2,0) - ALHF*Evp0(I2)
106     sFlx(I2,1) = sFlx(I2,1) - ALHF*EVAP(I2)
107     sFlx(I2,2) = sFlx(I2,2) - ALHF*dEvp(I2)
108     land_EnWFlux(i,j,bi,bj) = -ALHF
109     ENDIF
110     ENDDO
111     ENDDO
112     ENDIF
113    
114 jmc 1.1 CALL LAND_IMPL_TEMP(
115     I aim_landFr,
116     I dTskin, sFlx,
117     O dTsurf,
118     I bi, bj, myTime, myIter, myThid)
119    
120 jmc 1.2 C-- Surface B.C. for atmospheric physics:
121 jmc 1.3 C- Update Evap, Upward SW according to surf. temp. changes
122 jmc 1.1 DO J=1,NGP
123     IF ( dTsurf(J) .GT. 999. ) THEN
124 jmc 1.3 SHF (J) = Shf0(J)
125 jmc 1.1 EVAP(J) = Evp0(J)
126     SLRU(J) = Slr0(J)
127     ELSE
128 jmc 1.3 SHF (J) = SHF (J) + dTsurf(J)*dShf(J)
129 jmc 1.1 EVAP(J) = EVAP(J) + dTsurf(J)*dEvp(J)
130     SLRU(J) = SLRU(J) + dTsurf(J)*dSlr(J)
131     ENDIF
132     ENDDO
133    
134 jmc 1.3 C-- Update surface fluxes for Land model:
135 jmc 1.2 DO j=1,sNy
136     DO i=1,sNx
137     I2 = i+(j-1)*sNx
138     C- net surface downward heat flux :
139     IF ( dTsurf(I2) .GT. 999. ) THEN
140     land_HeatFlx(i,j,bi,bj) = sFlx(I2,0)
141     ELSE
142     land_HeatFlx(i,j,bi,bj) = sFlx(I2,1)+dTsurf(I2)*sFlx(I2,2)
143     ENDIF
144     C- energy flux associated with Evap of Snow
145     land_EnWFlux(i,j,bi,bj) = -land_EnWFlux(i,j,bi,bj)*EVAP(I2)
146     ENDDO
147     ENDDO
148    
149 jmc 1.3 C- Update Surf.Temp.:
150     DO J=1,NGP
151     IF ( dTsurf(J) .GT. 999. ) THEN
152     dTsurf(J)= tFreeze - Tsurf(J)
153     Tsurf(J) = tFreeze
154     ELSE
155     Tsurf(J) = Tsurf(J)+ dTsurf(J)
156     ENDIF
157     ENDDO
158    
159 jmc 1.2 C- end (if useLand & land_impl_grT)
160 jmc 1.1 ENDIF
161    
162     #endif /* ALLOW_LAND */
163     #endif /* ALLOW_AIM */
164    
165     RETURN
166     END

  ViewVC Help
Powered by ViewVC 1.1.22