Ignore:
Timestamp:
Oct 30, 2023, 5:37:00 PM (8 months ago)
Author:
Laurent Fairhead
Message:

Merge of ACC branch with 4740 revision from trunk

Location:
LMDZ6/branches/Portage_acc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/branches/Portage_acc

  • LMDZ6/branches/Portage_acc/libf/phylmdiso/cva_driver.F90

    r4446 r4743  
    1111                      Ale1, Alp1, omega1, &
    1212                      sig1feed1, sig2feed1, wght1, &
    13                       iflag1, ft1, fq1, fu1, fv1, ftra1, &
     13                      iflag1, ft1, fq1, fqcomp1, fu1, fv1, ftra1, &
    1414                      precip1, kbas1, ktop1, &
    1515                      cbmf1, plcl1, plfc1, wbeff1, &
     
    2626                      da1, phi1, mp1, phi21, d1a1, dam1, sigij1, wghti1, & ! RomP, RL
    2727                      qta1, clw1, elij1, evap1, ep1, epmlmMm1, eplaMm1, &  ! RomP, RL
    28                       wdtrainA1, wdtrainS1, wdtrainM1, qtc1, sigt1, tau_cld_cv, &     !!jygprl
     28                      wdtrainA1, wdtrainS1, wdtrainM1, qtc1, sigt1, detrain1, tau_cld_cv, &     !!jygprl
    2929                      coefw_cld_cv, &                                      ! RomP, AJ
    3030                      epmax_diag1 &  ! epmax_cape
     
    8888! ntra          Integer        Input        number of tracors
    8989! nloc          Integer        Input        dimension of arrays for compressed fields
     90! fqcomp1       Real           Output       spec hum tend (only mixed draughts)
    9091! k_upper       Integer        Input        upmost level for vertical loops
    9192! iflag_con     Integer        Input        version of convect (3/4)
     
    135136! upwd1         Real           Output       total upward mass flux (adiab+mixed)
    136137! dnwd1         Real           Output       saturated downward mass flux (mixed)
     138! detrain1      Real           Output     detrainment terme klein
    137139! dnwd01        Real           Output       unsaturated downward mass flux
    138140! qcondc1       Real           Output       in-cld mixing ratio of condensed water
     
    209211  LOGICAL, INTENT (IN)                               :: ok_conserv_q
    210212  REAL, INTENT (IN)                                  :: tau_cld_cv
     213  REAL, DIMENSION (len, nd), INTENT (OUT)            :: fqcomp1
    211214  REAL, INTENT (IN)                                  :: coefw_cld_cv
    212215  REAL, INTENT (IN)                                  :: delt
     
    248251  REAL, DIMENSION (len), INTENT (OUT)                :: cbmf1
    249252  REAL, DIMENSION (len), INTENT (OUT)                :: plcl1
     253  REAL, DIMENSION (len, nd), INTENT (OUT)            :: detrain1   ! detrainement term of mixed draughts in environment
    250254  REAL, DIMENSION (len), INTENT (OUT)                :: plfc1
    251255  REAL, DIMENSION (len), INTENT (OUT)                :: wbeff1
     
    572576  REAL, DIMENSION(len,nd)     :: ice, fondue, b
    573577  REAL, DIMENSION(len,nd)     :: frac_a, frac_s, faci               !!jygprl
    574   REAL ft(nloc, nd), fq(nloc, nd)
     578  REAL ft(nloc, nd), fq(nloc, nd), fqcomp(nloc, nd)
    575579  REAL ftd(nloc, nd), fqd(nloc, nd)
    576580  REAL fu(nloc, nd), fv(nloc, nd)
     
    598602  REAL qtc(nloc, nd)         ! cld
    599603  REAL sigt(nloc, nd)        ! cld
     604  REAL detrain(nloc, nd)     ! cld
    600605 
    601606! RomP >>>
     
    706711  ft1(:, :) = 0.0
    707712  fq1(:, :) = 0.0
     713  fqcomp1(:, :) = 0.0
    708714  fu1(:, :) = 0.0
    709715  fv1(:, :) = 0.0
     
    766772! RomP >>>
    767773  sigt1(:, :) = 0.
     774  detrain1(:, :) = 0.
    768775  qtc1(:, :) = 0.
    769776  wdtrainA1(:, :) = 0.
     
    15611568        if (prt_level >= 9) &
    15621569             PRINT *, 'cva_driver -> cv3_yield'
     1570
    15631571      CALL cv3_yield(nloc, ncum, nd, nd, ntra, ok_conserv_q, &                      ! na->nd
    15641572                     icb, inb, delt, &
     
    15701578                     nent, elij, traent, sig, &
    15711579                     tv, tvp, wghti, &
    1572                      iflag, precip, Vprecip, Vprecipi, ft, fq, fu, fv, ftra, &      ! jyg
     1580                     iflag, precip, Vprecip, Vprecipi, ft, fq, fqcomp, fu, fv, ftra, &      ! jyg
    15731581                     cbmf, upwd, dnwd, dnwd0, ma, mip, &
    15741582!!                     tls, tps, &                            ! useless . jyg
    15751583                     qcondc, wd, &
    15761584!!                     ftd, fqd, qnk, qtc, sigt, tau_cld_cv, coefw_cld_cv)
    1577                      ftd, fqd, qta, qtc, sigt, tau_cld_cv, coefw_cld_cv &  !!jygprl
     1585                     ftd, fqd, qta, qtc, sigt,detrain,tau_cld_cv, coefw_cld_cv &  !!jygprl
    15781586#ifdef ISO
    15791587     &                     ,xt,xt_wake,xtclw,xtp,xtwater,xtice,xtevap &
     
    16731681                           iflag, icb, inb, &
    16741682                           precip, cbmf, plcl, plfc, wbeff, sig, w0, ptop2, &
    1675                            ft, fq, fu, fv, ftra, &
     1683                           ft, fq, fqcomp, fu, fv, ftra, &
    16761684                           sigd, ma, mip, vprecip, vprecipi, upwd, dnwd, dnwd0, &
    16771685                           qcondc, wd, cape, cin, &
     
    16831691                           qta, clw, elij, evap, ep, epmlmMm, eplaMm, &  ! RomP
    16841692                           wdtrainA, wdtrainS, wdtrainM, &                         ! RomP
    1685                            qtc, sigt, epmax_diag, & ! epmax_cape
     1693                           qtc, sigt, detrain, epmax_diag, & ! epmax_cape
    16861694                           iflag1, kbas1, ktop1, &
    16871695                           precip1, cbmf1, plcl1, plfc1, wbeff1, sig1, w01, ptop21, &
    1688                            ft1, fq1, fu1, fv1, ftra1, &
     1696                           ft1, fq1, fqcomp1, fu1, fv1, ftra1, &
    16891697                           sigd1, ma1, mip1, vprecip1, vprecipi1, upwd1, dnwd1, dnwd01, &
    16901698                           qcondc1, wd1, cape1, cin1, &
     
    16961704                           qta1, clw1, elij1, evap1, ep1, epmlmMm1, eplaMm1, & ! RomP
    16971705                           wdtrainA1, wdtrainS1, wdtrainM1,                  & ! RomP
    1698                            qtc1, sigt1, epmax_diag1 & ! epmax_cape
     1706                           qtc1, sigt1,detrain1,epmax_diag1 & ! epmax_cape
    16991707#ifdef ISO
    17001708     &          ,xtprecip,fxt,fxtd, xtVprecip,xtVprecipi, xtclw,xtevap,xtwdtraina       &
Note: See TracChangeset for help on using the changeset viewer.