Changeset 1988 for trunk/LMDZ.GENERIC/libf/phystd/gfluxv.F
- Timestamp:
- Aug 28, 2018, 4:22:24 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.GENERIC/libf/phystd/gfluxv.F
r1420 r1988 240 240 C FLUX AT THE Ptop layer 241 241 242 EP = 1.0 243 EM = 1.0 242 ! EP = 1.0 243 ! EM = 1.0 244 C JL18 correction to account for the fact that the radiative top is not at zero optical depth. 245 EXPTRM(L) = MIN(TAUMAX,LAMDA(L)*(TAUCUM(2))) 246 EP = EXP(EXPTRM(L)) 247 EM = 1.0/EP 244 248 G4 = 1.0-G3(1) 245 249 DENOM = LAMDA(1)**2 - 1./UBAR0**2 … … 260 264 C AT THE MIDDLE OF THE LAYER. 261 265 262 CPMID = AP 263 CMMID = AM 266 C CPMID = AP 267 C CMMID = AM 268 C JL18 correction to account for the fact that the radiative top is not at zero optical depth. 269 TAUMID = TAUCUM(2) 270 CPMID = AP*EXP(-TAUMID/UBAR0) 271 CMMID = AM*EXP(-TAUMID/UBAR0) 264 272 265 273 FLUXUP = XK1(1)*EP + GAMA(1)*XK2(1)*EM + CPMID … … 268 276 C ADD THE DIRECT FLUX TO THE DOWNWELLING TERM 269 277 270 fluxdn = fluxdn+UBAR0*F0PI*EXP(-MIN(TAUCUM(1),TAUMAX)/UBAR0) 278 ! fluxdn = fluxdn+UBAR0*F0PI*EXP(-MIN(TAUCUM(1),TAUMAX)/UBAR0) 279 !JL18 the line above assumed that the top of the radiative model was P=0 280 ! it seems to be better for the IR to use the middle of the last physical layer as the radiative top. 281 ! so we correct the downwelling flux below for the calculation of the heating rate 282 fluxdn = fluxdn+UBAR0*F0PI*EXP(-TAUCUM(2)/UBAR0) 271 283 272 284 C This is for the "special" bottom layer, where we take
Note: See TracChangeset
for help on using the changeset viewer.