Ignore:
Timestamp:
Oct 2, 2017, 10:16:06 AM (7 years ago)
Author:
jyg
Message:

(i) Implementation of the conditionning of the Alp
provided by the wakes: when iflag_alp_wk_cond > 0,
Alp_wk is divided by the probability that there is
a gust front within the grid cell.

New subroutine alpale_wk.F90 called by physiq.

(ii) Some changes concerning the initialization of
the variable wake_dens.

File:
1 edited

Legend:

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

    r2849 r3000  
    7272  ! Variable internes
    7373  ! -----------------
     74  LOGICAL, SAVE                                      :: first = .TRUE.
     75  !$OMP THREADPRIVATE(first)
    7476  INTEGER                                            :: i, l
    7577  INTEGER, DIMENSION(klon)                           :: znatsurf    ! 0 if pctsrf(is_oce)>0.1; 1 else.
     
    177179
    178180  DO i = 1, klon
    179     wdens(i) = wake_dens(i)
     181    wdens(i) = max(0., wake_dens(i))
    180182  END DO
    181183
     
    298300      wake_dens(i) = wdens(i)
    299301    END DO
    300   ENDIF
     302  ENDIF  ! (iflag_wake_tend .EQ. 0)
     303!
     304  IF (first) THEN
     305    DO i = 1,klon
     306      IF (wake_dens(i) < -1.) THEN
     307        wake_dens(i) = wdens(i)
     308      ENDIF
     309    ENDDO
     310    first=.false.
     311  ENDIF  ! (first)
    301312!>jyg
    302313
Note: See TracChangeset for help on using the changeset viewer.