Changeset 5710


Ignore:
Timestamp:
Jun 16, 2025, 5:31:32 PM (4 weeks ago)
Author:
yann meurdesoif
Message:

Convection GPU porting : suppress potential dependency between columns, may change results (cv3p2_closure)

YM

File:
1 edited

Legend:

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

    r5702 r5710  
    2323  ! **************************************************************
    2424
    25 USE yomcst2_mod_h
    26    USE lmdz_cv_ini, ONLY : alpha,alpha1,beta,flag_wb,minorig,nl,noconv_stop,pbcrit,rrd,wbmax,coef_peel
     25  USE yomcst2_mod_h
     26  USE lmdz_cv_ini, ONLY : alpha,alpha1,beta,flag_wb,minorig,nl,noconv_stop,pbcrit,rrd,wbmax,coef_peel
    2727  USE conema3_mod_h
    2828  USE cvflag_mod_h
     
    167167  ! compute icbmax:
    168168
    169   icbmax = 2
    170   DO il = 1, ncum
    171     icbmax = max(icbmax, icb(il))
    172   END DO
     169!ym break the column independance
     170!ym  icbmax = 2
     171!ym  DO il = 1, ncum
     172!ym    icbmax = max(icbmax, icb(il))
     173!ym  END DO
     174
    173175  ! if(prt.level.GE.20) print*,'cv3p2_closure apres 200'
    174176
    175177  ! update sig and w0 below cloud base:
    176178
    177   DO k = 1, icbmax
    178     DO il = 1, ncum
    179       IF (k<=icb(il)) THEN
    180         sig(il, k) = beta*sig(il, k) - 2.*alpha*buoy(il, icb(il))*buoy(il,icb(il))
    181         sig(il, k) = amax1(sig(il,k), 0.0)
    182         w0(il, k) = beta*w0(il, k)
    183       END IF
     179!ym column independance
     180!ym  DO k = 1, icbmax
     181  DO k = 1, nd
     182    DO il = 1, ncum
     183      IF (k<=MAX(2,icb(il))) THEN
     184        IF (k<=icb(il)) THEN
     185          sig(il, k) = beta*sig(il, k) - 2.*alpha*buoy(il, icb(il))*buoy(il,icb(il))
     186          sig(il, k) = amax1(sig(il,k), 0.0)
     187          w0(il, k) = beta*w0(il, k)
     188        END IF
     189      ENDIF
    184190    END DO
    185191  END DO
Note: See TracChangeset for help on using the changeset viewer.