Changeset 4116 for LMDZ6/trunk/libf/phylmd/radlwsw_m.F90
- Timestamp:
- Mar 29, 2022, 11:12:45 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/trunk/libf/phylmd/radlwsw_m.F90
r4045 r4116 40 40 toplwad_aero, sollwad_aero,& 41 41 toplwai_aero, sollwai_aero, & 42 toplwad0_aero, sollwad0_aero, &42 toplwad0_aero, sollwad0_aero, & 43 43 !-end 44 44 ZLWFT0_i, ZFLDN0, ZFLUP0,& … … 224 224 REAL, INTENT(in) :: piz_aero_sw_rrtm(KLON,KLEV,2,NSW) ! aerosol optical properties RRTM 225 225 REAL, INTENT(in) :: cg_aero_sw_rrtm(KLON,KLEV,2,NSW) ! aerosol optical properties RRTM 226 ! AI 226 227 !--OB fin 227 228 … … 335 336 REAL(KIND=8) ZSWDIFFUSEBAND(klon,NSW), & ! SW DN flux in diffuse albedo band 336 337 ZSWDIRECTBAND(klon,NSW) ! SW DN flux in direct albedo band 338 REAL(KIND=8) SOLARIRAD 337 339 REAL(KIND=8) seuilmach 340 ! AI 10 mars 22 : Pour les tests Offline 341 logical :: lldebug_for_offline = .false. 342 REAL(KIND=8) solaire_off(klon), & 343 ZCO2_off(klon,klev), & 344 ZCH4_off(klon,klev), & ! CH4 mass mixing ratios on full levels 345 ZN2O_off(klon,klev), & ! N2O mass mixing ratios on full levels 346 ZNO2_off(klon,klev), & ! NO2 mass mixing ratios on full levels 347 ZCFC11_off(klon,klev), & ! CFC11 348 ZCFC12_off(klon,klev), & ! CFC12 349 ZHCFC22_off(klon,klev), & ! HCFC22 350 ZCCL4_off(klon,klev), & ! CCL4 351 ZO2_off(klon,klev) ! O2#endif 338 352 #endif 339 353 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! … … 1169 1183 ! DO i = 1, kdlon 1170 1184 ! DO k = 1, kflev 1185 ! DO kk= 1, naero_tot 1171 1186 ! DO kk=1, NSW 1172 1187 ! … … 1178 1193 ! PPIZA_NAT(i,kflev+1-k,kk)=piz_aero_sw_rrtm(i,k,1,kk) 1179 1194 ! PCGA_NAT(i,kflev+1-k,kk)=cg_aero_sw_rrtm(i,k,1,kk) 1195 ! ZAEROSOL(i,kflev+1-k,kk)=m_allaer(i,k,kk) 1180 1196 ! 1181 1197 ! ENDDO … … 1282 1298 ENDDO 1283 1299 1284 ! AI ATTENTION TESTS1285 ! PALBD_NEW = 0.01286 ! PALBP_NEW = 0.01287 ! ZCO2 = RCO21288 ! ZCH4 = RCH41289 ! ZN2O = RN2O1290 ! ZNO2 = 0.01291 ! ZCFC11 = RCFC111292 ! ZCFC12 = RCFC121293 ! ZHCFC22 = 0.01294 ! ZO2 = 0.01295 ! ZCCL4 = 0.01296 1300 1297 1301 print *,'RADLWSW: avant RADIATION_SCHEME ' 1298 ! print*,'RCFC11=',RCFC11 1299 ! print*,'RCFC12=',RCFC12 1300 1301 IF (lldebug) THEN 1302 1303 ! AI mars 2022 1304 SOLARIRAD = solaire/zdist/zdist 1305 !! diagnos pour la comparaison a la version offline 1306 !!! - Gas en VMR pour offline et MMR pour online 1307 !!! - on utilise pour solarirrad une valeur constante 1308 if (lldebug_for_offline) then 1309 SOLARIRAD = 1366.0896 1310 ZCH4_off = CH4_ppb*1e-9 1311 ZN2O_off = N2O_ppb*1e-9 1312 ZNO2_off = 0.0 1313 ZCFC11_off = CFC11_ppt*1e-12 1314 ZCFC12_off = CFC12_ppt*1e-12 1315 ZHCFC22_off = 0.0 1316 ZCCL4_off = 0.0 1317 ZO2_off = 0.0 1318 ZCO2_off = co2_ppm*1e-6 1319 1302 1320 CALL writefield_phy('rmu0',rmu0,1) 1303 1321 CALL writefield_phy('tsol',tsol,1) 1304 1322 CALL writefield_phy('emissiv_out',ZEMIS,1) 1305 ! CALL writefield_phy('emissiv_in',ZEMISW,1)1306 ! CALL writefield_phy('pctsrf_ter',pctsrf(:,is_ter),1)1307 ! CALL writefield_phy('pctsrf_oce',pctsrf(:,is_oce),1)1308 ! CALL writefield_phy('ZGELAM',ZGELAM,1)1309 ! CALL writefield_phy('ZGEMU',ZGEMU,1)1310 ! CALL writefield_phy('zmasq',zmasq,1)1311 1323 CALL writefield_phy('paprs_i',paprs_i,klev+1) 1312 ! CALL writefield_phy('pplay_i',pplay_i,klev)1313 ! CALL writefield_phy('t_i',t_i,klev)1314 1324 CALL writefield_phy('ZTH_i',ZTH_i,klev+1) 1315 1325 CALL writefield_phy('cldfra_i',cldfra_i,klev) … … 1320 1330 CALL writefield_phy('palbp_new',PALBP_NEW,NSW) 1321 1331 CALL writefield_phy('POZON',POZON_i(:,:,1),klev) 1322 ! CALL writefield_phy('ZCO2',ZCO2,klev)1323 ! CALL writefield_phy('ZCH4',ZCH4,klev)1324 ! CALL writefield_phy('ZN2O',ZN2O,klev)1325 ! CALL writefield_phy('ZO2',ZO2,klev)1326 ! CALL writefield_phy('ZNO2',ZNO2,klev)1327 ! CALL writefield_phy('ZCFC11',ZCFC11,klev)1328 ! CALL writefield_phy('ZCFC12',ZCFC12,klev)1329 ! CALL writefield_phy('ZHCFC22',ZHCFC22,klev)1330 ! CALL writefield_phy('ZCCL4',ZCCL4,klev)1332 CALL writefield_phy('ZCO2',ZCO2_off,klev) 1333 CALL writefield_phy('ZCH4',ZCH4_off,klev) 1334 CALL writefield_phy('ZN2O',ZN2O_off,klev) 1335 CALL writefield_phy('ZO2',ZO2_off,klev) 1336 CALL writefield_phy('ZNO2',ZNO2_off,klev) 1337 CALL writefield_phy('ZCFC11',ZCFC11_off,klev) 1338 CALL writefield_phy('ZCFC12',ZCFC12_off,klev) 1339 CALL writefield_phy('ZHCFC22',ZHCFC22_off,klev) 1340 CALL writefield_phy('ZCCL4',ZCCL4_off,klev) 1331 1341 CALL writefield_phy('ref_liq_i',ref_liq_i,klev) 1332 1342 CALL writefield_phy('ref_ice_i',ref_ice_i,klev) 1333 ENDIF 1343 endif 1344 ! lldebug_for_offline 1334 1345 1335 1346 CALL RADIATION_SCHEME & … … 1337 1348 ! ??? naero_tot 1338 1349 & day_cur, current_time, & 1339 & PSCT, & 1340 & rmu0, tsol, PALBD_NEW,PALBP_NEW, & 1341 ! PEMIS_WINDOW (???), & 1350 & SOLARIRAD, & 1351 & rmu0, tsol, & 1352 ! Albedo diffuse et directe 1353 & PALBD_NEW,PALBP_NEW, & 1354 ! Emessivite : PEMIS_WINDOW (???), & 1342 1355 & ZEMIS, ZEMISW, & 1343 1356 ! PCCN_LAND, PCCN_SEA, & ??? … … 1374 1387 print *,'========= RADLWSW: apres RADIATION_SCHEME ==================== ' 1375 1388 1376 IF (lldebug) THEN1389 if (lldebug_for_offline) then 1377 1390 CALL writefield_phy('FLUX_LW',ZLWFT_i,klev+1) 1378 1391 CALL writefield_phy('FLUX_LW_CLEAR',ZLWFT0_ii,klev+1) … … 1389 1402 CALL writefield_phy('FLUX_UP_SW',ZFSUP_i,klev+1) 1390 1403 CALL writefield_phy('FLUX_UP_SW_CLEAR',ZFCUP_i,klev+1) 1391 ENDIF 1404 endif 1405 1392 1406 ! --------- 1393 1407 ! On retablit l'ordre des niveaux lmd pour les tableaux de sortie
Note: See TracChangeset
for help on using the changeset viewer.