Ignore:
Timestamp:
Jan 10, 2017, 3:30:46 PM (8 years ago)
Author:
jyg
Message:

Changes to convection and wakes:
+ convection is allowed only when

Plcl < 0.99*psurf

Controlled by cv_flag_feed=2 (D:1)


+ check on the triangular shape of
DT_wk.

Controlled by flag_wk_check_trgl=y
(D : n)



File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ5/trunk/libf/phylmd/cv3_routines.F90

    r2671 r2757  
    8383
    8484! Var interm pour le getin
     85     cv_flag_feed=1
     86     CALL getin_p('cv_flag_feed',cv_flag_feed)
    8587     dpbase=-40.
    8688     CALL getin_p('dpbase',dpbase)
     
    453455    END DO
    454456  END DO !  iter
     457
    455458  DO i = 1, len
    456459    p2feed(i) = pfeed(i)
     
    467470! --- are reasonable
    468471! -------------------------------------------------------------------
    469   DO i = 1, len
    470     IF (((tnk(i)<250.0) .OR. (qnk(i)<=0.0)) .AND. (iflag(i)==0)) iflag(i) = 7
    471   END DO
     472  IF (cv_flag_feed == 1) THEN
     473    DO i = 1, len
     474      IF (((tnk(i)<250.0)                       .OR.  &
     475           (qnk(i)<=0.0))                       .AND. &
     476          (iflag(i)==0)) iflag(i) = 7
     477    END DO
     478  ELSEIF (cv_flag_feed >= 2) THEN
     479! --- and demand that LCL be high enough
     480    DO i = 1, len
     481      IF (((tnk(i)<250.0)                       .OR.  &
     482           (qnk(i)<=0.0)                        .OR.  &
     483           (plcl(i)>min(0.99*ph(i,1),ph(i,3)))) .AND. &
     484          (iflag(i)==0)) iflag(i) = 7
     485    END DO
     486  ENDIF
    472487
    473488! -------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.