Ignore:
Timestamp:
Jan 28, 2025, 7:07:51 PM (2 days ago)
Author:
yann meurdesoif
Message:

Implement GPU automatic port for :

  • Thermics
  • acama_gwd_rando
  • flott_gwd_rando

YM

File:
1 edited

Legend:

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

    r5390 r5512  
    1616!---------------------------------------------------------------------------
    1717
    18       USE lmdz_thermcell_ini, ONLY : prt_level,iflag_thermals_optflux
     18      USE lmdz_thermcell_ini, ONLY : prt_level,iflag_thermals_optflux, thermals_fomass_max, thermals_alphamax
    1919      IMPLICIT NONE
    2020     
     
    4848      REAL f_old,ddd0,eee0,ddd,eee,zzz
    4949
    50       REAL,SAVE :: fomass_max=0.5
    51       REAL,SAVE :: alphamax=0.7
    52 !$OMP THREADPRIVATE(fomass_max,alphamax)
    53 
    5450      logical check_debug,labort_physic
    5551
    56       character (len=20) :: modname='thermcell_flux2'
     52      character (len=20), PARAMETER :: modname='thermcell_flux2'
    5753      character (len=80) :: abort_message
    5854
     
    391387        do ig=1,ngrid
    392388           if (zw2(ig,l+1).gt.1.e-10) then
    393            zfm=rhobarz(ig,l+1)*zw2(ig,l+1)*alphamax
     389           zfm=rhobarz(ig,l+1)*zw2(ig,l+1)*thermals_alphamax
    394390           if ( fm(ig,l+1) .gt. zfm) then
    395391              f_old=fm(ig,l+1)
     
    430426            eee0=entr(ig,l)
    431427            ddd0=detr(ig,l)
    432             eee=entr(ig,l)-masse(ig,l)*fomass_max/ptimestep
     428            eee=entr(ig,l)-masse(ig,l)*thermals_fomass_max/ptimestep
    433429            ddd=detr(ig,l)-eee
    434430            if (eee.gt.0.) then
     
    470466                         print*,'detr',detr(ig,l)
    471467                         print*,'masse',masse(ig,l)
    472                          print*,'fomass_max',fomass_max
    473                          print*,'masse(ig,l)*fomass_max/ptimestep',masse(ig,l)*fomass_max/ptimestep
     468                         print*,'thermal_fomass_max',thermals_fomass_max
     469                         print*,'masse(ig,l)*fomass_max/ptimestep',masse(ig,l)*thermals_fomass_max/ptimestep
    474470                         print*,'ptimestep',ptimestep
    475471                         print*,'lmax(ig)',lmax(ig)
Note: See TracChangeset for help on using the changeset viewer.