Ignore:
Timestamp:
Feb 3, 2018, 12:02:21 PM (7 years ago)
Author:
jyg
Message:

Correction to commit 3178: the bug is corrected only if
ok_bug_split_th is "false". The default is "true".

File:
1 edited

Legend:

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

    r3179 r3180  
    896896    LOGICAL, SAVE :: ok_bug_cv_trac = .TRUE.
    897897    !$OMP THREADPRIVATE(ok_bug_cv_trac)
     898    !
     899    ! Logical switch to a bug : changing wake_deltat when thermals are active
     900    ! even when there are no wakes.
     901    LOGICAL, SAVE :: ok_bug_split_th = .TRUE.
     902    !$OMP THREADPRIVATE(ok_bug_split_th)
    898903
    899904    !
     
    12801285       CALL getin_p('ok_bad_ecmwf_thermo',ok_bad_ecmwf_thermo)
    12811286       CALL getin_p('ok_bug_cv_trac',ok_bug_cv_trac)
     1287       CALL getin_p('ok_bug_split_th',ok_bug_split_th)
    12821288       fl_ebil = 0 ! by default, conservation diagnostics are desactivated
    12831289       CALL getin_p('fl_ebil',fl_ebil)
     
    31173123             ENDDO
    31183124          !
    3119 !!             CALL add_wake_tend &
    3120 !!                 (d_deltat_the, d_deltaq_the, dsig0, ddens0, wkoccur1, 'the', abortphy)
    3121              CALL add_wake_tend &
    3122                  (d_deltat_the, d_deltaq_the, dsig0, ddens0, wake_k, 'the', abortphy)
     3125             IF (ok_bug_split_th) THEN
     3126               CALL add_wake_tend &
     3127                   (d_deltat_the, d_deltaq_the, dsig0, ddens0, wkoccur1, 'the', abortphy)
     3128             ELSE
     3129               CALL add_wake_tend &
     3130                   (d_deltat_the, d_deltaq_the, dsig0, ddens0, wake_k, 'the', abortphy)
     3131             ENDIF
    31233132             call prt_enerbil('the',itap)
    31243133          !
Note: See TracChangeset for help on using the changeset viewer.