Changeset 5697
- Timestamp:
- Jun 13, 2025, 8:25:51 PM (4 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/trunk/libf/phylmd/cv3p_mixing.f90
r5695 r5697 4 4 CONTAINS 5 5 6 SUBROUTINE cv3p_mixing_pre 7 8 END SUBROUTINE cv3p_mixing_pre 6 9 7 10 SUBROUTINE cv3p_mixing(nloc, ncum, nd, na, ntra, icb, nk, inb, & … … 19 22 ! ************************************************************** 20 23 21 USE yomcst2_mod_h 24 USE yomcst2_mod_h, ONLY : Fmax, gammas, scut, qqa1, qqa2 22 25 USE lmdz_cv_ini, ONLY : cpd,cpv,minorig,nl,rrv 23 26 USE cvflag_mod_h … … 87 90 88 91 REAL Qcoef1, Qcoef2, QFF, QFFF, Qmix, Rmix, Qmix1, Rmix1, Qmix2, Rmix2, F 89 92 REAL :: Qcoef1max,Qcoef2max !ym WARNING 93 !ym redefine local variable instead use module variable 94 !ym to check when refactoring deep convection 95 !ym => eliminate "first" SAVE variable 96 !ym probably all these folowing lines will be removed 90 97 Qcoef1(F) = tanh(F/gammas) 91 98 Qcoef2(F) = (tanh(F/gammas)+gammas*log(cosh((1.-F)/gammas)/cosh(F/gammas))) … … 99 106 Rmix(F) = qqa1*Rmix1(F) + qqa2*Rmix2(F) 100 107 101 INTEGER, SAVE :: ifrst102 DATA ifrst/0/103 !$OMP THREADPRIVATE(ifrst)104 108 105 109 … … 108 112 ! ===================================================================== 109 113 110 ! -- Initialize mixing PDF coefficients 111 IF (ifrst==0) THEN 112 ifrst = 1 113 Qcoef1max = Qcoef1(Fmax) 114 Qcoef2max = Qcoef2(Fmax) 115 !<jyg 116 print*, 'fmax, gammas, qqa1, qqa2, Qcoef1max, Qcoef2max ', & 117 fmax, gammas, qqa1, qqa2, Qcoef1max, Qcoef2max 118 !>jyg 119 ! 120 END IF 121 114 Qcoef1max = Qcoef1(Fmax) 115 Qcoef2max = Qcoef2(Fmax) 122 116 123 117 ! ori do 360 i=1,ncum*nlp
Note: See TracChangeset
for help on using the changeset viewer.