Changeset 2573 for LMDZ5


Ignore:
Timestamp:
Jun 15, 2016, 2:49:48 AM (8 years ago)
Author:
fhourdin
Message:

Reactivation du parametre lmixmin

File:
1 edited

Legend:

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

    r2561 r2573  
    55
    66  USE dimphy
     7  USE ioipsl_getin_p_mod, ONLY : getin_p
     8
    79  IMPLICIT NONE
    810  include "iniprint.h"
     
    129131  DATA ric, rifc, b1, kap/0.195, 0.191, 16.6, 0.4/
    130132  !$OMP THREADPRIVATE(ric,rifc,b1,kap)
    131   REAL seuilsm, seuilalpha, lmixmin
     133  REAL seuilsm, seuilalpha
     134  REAL,SAVE :: lmixmin
     135  !$OMP THREADPRIVATE(lmixmin)
    132136  REAL frif, falpha, fsm
    133137  REAL rino(klon, klev+1), smyam(klon, klev), styam(klon, klev), &
     
    145149 
    146150
     151  IF (firstcall) THEN
     152    firstcall = .FALSE.
     153    lmixmin=1.
     154    CALL getin_p('lmixmin',lmixmin)
     155  END IF
     156
     157
     158
    147159!===============================================================================
    148160! Flags, tests et ??valuations de constantes
     
    160172 seuilalpha=1.12
    161173 seuilsm=0.085
    162  lmixmin=1.
    163174
    164175  nlay = klev
     
    239250
    240251 
    241   CALL mixinglength(ni,nsrf,ngrid,iflag_pbl,pbl_lmixmin_alpha,lmixmin,zlay,zlev,u,v,q2,n2, firstcall, l)
     252  CALL mixinglength(ni,nsrf,ngrid,iflag_pbl,pbl_lmixmin_alpha,lmixmin,zlay,zlev,u,v,q2,n2, l)
    242253
    243254
     
    680691!+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    681692
    682 SUBROUTINE mixinglength(ni, nsrf, ngrid,iflag_pbl,pbl_lmixmin_alpha,lmixmin,zlay,zlev,u,v,q2,n2, firstcall, lmix)
     693SUBROUTINE mixinglength(ni, nsrf, ngrid,iflag_pbl,pbl_lmixmin_alpha,lmixmin,zlay,zlev,u,v,q2,n2, lmix)
    683694
    684695
     
    746757!-------
    747758
    748  LOGICAL            firstcall          ! premier appel au code
     759  LOGICAL, SAVE :: firstcall = .TRUE.
     760  !$OMP THREADPRIVATE(firstcall)
    749761
    750762! Outputs
     
    970982
    971983END SUBROUTINE mixinglength
    972 
    973 !+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Note: See TracChangeset for help on using the changeset viewer.