Changeset 5708


Ignore:
Timestamp:
Jun 16, 2025, 4:26:48 PM (4 weeks ago)
Author:
yann meurdesoif
Message:

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

YM

File:
1 edited

Legend:

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

    r5702 r5708  
    154154  ! compute icbmax:
    155155
    156   icbmax = 2
    157   DO il = 1, ncum
    158     icbmax = max(icbmax, icb(il))
    159   END DO
     156!ym break the column independance
     157!ym  icbmax = 2
     158!ym  DO il = 1, ncum
     159!ym    icbmax = max(icbmax, icb(il))
     160!ym  END DO
     161
    160162  ! if(prt.level.GE.20) print*,'cv3p1_param apres 200'
    161163
    162164  ! update sig and w0 below cloud base:
    163 
    164   DO k = 1, icbmax
    165     DO il = 1, ncum
    166       IF (k<=icb(il)) THEN
    167         sig(il, k) = beta*sig(il, k) - 2.*alpha*buoy(il, icb(il))*buoy(il, &
    168           icb(il))
    169         sig(il, k) = amax1(sig(il,k), 0.0)
    170         w0(il, k) = beta*w0(il, k)
    171       END IF
     165!ym column independance
     166!ym  DO k = 1, icbmax
     167  DO k = 1, nd
     168    DO il = 1, ncum
     169      IF (k<=MAX(2,icb(il))) THEN
     170        IF (k<=icb(il)) THEN
     171          sig(il, k) = beta*sig(il, k) - 2.*alpha*buoy(il, icb(il))*buoy(il, &
     172            icb(il))
     173          sig(il, k) = amax1(sig(il,k), 0.0)
     174          w0(il, k) = beta*w0(il, k)
     175        END IF
     176      ENDIF
    172177    END DO
    173178  END DO
Note: See TracChangeset for help on using the changeset viewer.