Changeset 881 for LMDZ4/trunk/libf/phylmd
- Timestamp:
- Jan 23, 2008, 4:44:26 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ4/trunk/libf/phylmd/physiq.F
r879 r881 2350 2350 END IF 2351 2351 2352 c =================================================================== c 2353 c Calcul de Qsat 2354 2355 DO k = 1, klev 2356 DO i = 1, klon 2357 zx_t = t_seri(i,k) 2358 IF (thermcep) THEN 2359 zdelta = MAX(0.,SIGN(1.,rtt-zx_t)) 2360 zx_qs = r2es * FOEEW(zx_t,zdelta)/pplay(i,k) 2361 zx_qs = MIN(0.5,zx_qs) 2362 zcor = 1./(1.-retv*zx_qs) 2363 zx_qs = zx_qs*zcor 2364 ELSE 2365 IF (zx_t.LT.t_coup) THEN 2366 zx_qs = qsats(zx_t)/pplay(i,k) 2367 ELSE 2368 zx_qs = qsatl(zx_t)/pplay(i,k) 2369 ENDIF 2370 ENDIF 2371 zqsat(i,k)=zx_qs 2372 ENDDO 2373 ENDDO 2374 2375 if (1.eq.1) then 2376 write(lunout,*) 'L qsat (g/kg) avant clouds_gno' 2377 write(lunout,'(i4,f15.4)') (k,1000.*zqsat(igout,k),k=1,klev) 2378 endif 2352 2379 c 2353 2380 c Appeler la convection (au choix) … … 2524 2551 c Calcul des proprietes des nuages convectifs 2525 2552 c 2526 DO k = 1, klev2527 DO i = 1, klon2528 zx_t = t_seri(i,k)2529 IF (thermcep) THEN2530 zdelta = MAX(0.,SIGN(1.,rtt-zx_t))2531 zx_qs = r2es * FOEEW(zx_t,zdelta)/pplay(i,k)2532 zx_qs = MIN(0.5,zx_qs)2533 zcor = 1./(1.-retv*zx_qs)2534 zx_qs = zx_qs*zcor2535 ELSE2536 IF (zx_t.LT.t_coup) THEN2537 zx_qs = qsats(zx_t)/pplay(i,k)2538 ELSE2539 zx_qs = qsatl(zx_t)/pplay(i,k)2540 ENDIF2541 ENDIF2542 zqsat(i,k)=zx_qs2543 ENDDO2544 ENDDO2545 2553 2546 2554 c calcul des proprietes des nuages convectifs … … 2568 2576 ema_cbmf(i) = ema_workcbmf(i) 2569 2577 ENDDO 2578 ELSE IF (iflag_con.eq.0) THEN 2579 write(lunout,*) 'On n appelle pas la convection' 2580 clwcon0=0. 2581 rnebcon0=0. 2582 d_t_con=0. 2583 d_q_con=0. 2584 d_u_con=0. 2585 d_v_con=0. 2586 rain_con=0. 2587 snow_con=0. 2588 bas=1 2589 top=1 2570 2590 ELSE 2571 2591 WRITE(lunout,*) "iflag_con non-prevu", iflag_con
Note: See TracChangeset
for help on using the changeset viewer.