Ignore:
Timestamp:
Jan 23, 2008, 4:44:26 PM (16 years ago)
Author:
Laurent Fairhead
Message:

Modif sur physiq.F pour pouvoir tourner sans convection
Correction sur create_make_gcm pour bien recopier les *mod où il faut
LF

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ4/trunk/libf/phylmd/physiq.F

    r879 r881  
    23502350      END IF
    23512351
     2352c =================================================================== c
     2353c   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
    23522379c
    23532380c Appeler la convection (au choix)
     
    25242551c Calcul des proprietes des nuages convectifs
    25252552c
    2526       DO k = 1, klev
    2527       DO i = 1, klon
    2528          zx_t = t_seri(i,k)
    2529          IF (thermcep) THEN
    2530             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*zcor
    2535          ELSE
    2536            IF (zx_t.LT.t_coup) THEN
    2537               zx_qs = qsats(zx_t)/pplay(i,k)
    2538            ELSE
    2539               zx_qs = qsatl(zx_t)/pplay(i,k)
    2540            ENDIF
    2541          ENDIF
    2542          zqsat(i,k)=zx_qs
    2543       ENDDO
    2544       ENDDO
    25452553
    25462554c   calcul des proprietes des nuages convectifs
     
    25682576            ema_cbmf(i) = ema_workcbmf(i)
    25692577          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
    25702590      ELSE
    25712591          WRITE(lunout,*) "iflag_con non-prevu", iflag_con
Note: See TracChangeset for help on using the changeset viewer.