Ignore:
Timestamp:
Oct 10, 2016, 11:41:47 AM (8 years ago)
Author:
fhourdin
Message:

Seuil max sur eau glace nuageuse oicemax (en plus de oliqmax)
Truc pour éviter des plantages dans des atmosphère super saturées.

File:
1 edited

Legend:

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

    r2656 r2657  
    584584    LOGICAL,SAVE :: ok_adjwk=.FALSE.
    585585    !$OMP THREADPRIVATE(ok_adjwk)
    586     REAL,SAVE :: oliqmax=999.
    587     !$OMP THREADPRIVATE(oliqmax)
     586    REAL,SAVE :: oliqmax=999.,oicemax=999.
     587    !$OMP THREADPRIVATE(oliqmax,oicemax)
    588588    REAL, SAVE :: alp_offset
    589589    !$OMP THREADPRIVATE(alp_offset)
     
    12011201       CALL getin_p('ok_adjwk',ok_adjwk)
    12021202       CALL getin_p('oliqmax',oliqmax)
     1203       CALL getin_p('oicemax',oicemax)
    12031204       CALL getin_p('ratqsp0',ratqsp0)
    12041205       CALL getin_p('ratqsdp',ratqsdp)
     
    30403041         'lsc',abortphy,flag_inhib_tend)
    30413042    rain_num(:)=0.
    3042     DO k = 1, klev  ! re-evaporation de l'eau liquide nuageuse
     3043    DO k = 1, klev
    30433044       DO i = 1, klon
    30443045          IF (ql_seri(i,k)>oliqmax) THEN
     
    30483049       ENDDO
    30493050    ENDDO
     3051    IF (nqo==3) THEN
     3052    DO k = 1, klev
     3053       DO i = 1, klon
     3054          IF (qs_seri(i,k)>oicemax) THEN
     3055             rain_num(i)=rain_num(i)+(qs_seri(i,k)-oicemax)*zmasse(i,k)/pdtphys
     3056             qs_seri(i,k)=oicemax
     3057          ENDIF
     3058       ENDDO
     3059    ENDDO
     3060    ENDIF
    30503061
    30513062    !---------------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.