Changeset 5697


Ignore:
Timestamp:
Jun 13, 2025, 8:25:51 PM (4 weeks ago)
Author:
yann meurdesoif
Message:

Convection GPU porting : remove initialisation phase for cv3p_mixing.f90
YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/libf/phylmd/cv3p_mixing.f90

    r5695 r5697  
    44CONTAINS
    55
     6SUBROUTINE cv3p_mixing_pre
     7
     8END SUBROUTINE cv3p_mixing_pre
    69
    710SUBROUTINE cv3p_mixing(nloc, ncum, nd, na, ntra, icb, nk, inb, &
     
    1922! **************************************************************
    2023
    21 USE yomcst2_mod_h
     24USE yomcst2_mod_h, ONLY : Fmax, gammas, scut, qqa1, qqa2
    2225   USE lmdz_cv_ini, ONLY : cpd,cpv,minorig,nl,rrv
    2326  USE cvflag_mod_h
     
    8790
    8891  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
    9097  Qcoef1(F) = tanh(F/gammas)
    9198  Qcoef2(F) = (tanh(F/gammas)+gammas*log(cosh((1.-F)/gammas)/cosh(F/gammas)))
     
    99106  Rmix(F) = qqa1*Rmix1(F) + qqa2*Rmix2(F)
    100107
    101   INTEGER, SAVE :: ifrst
    102   DATA ifrst/0/
    103 !$OMP THREADPRIVATE(ifrst)
    104108
    105109
     
    108112! =====================================================================
    109113
    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)
    122116
    123117! ori        do 360 i=1,ncum*nlp
Note: See TracChangeset for help on using the changeset viewer.