Ignore:
Timestamp:
Dec 17, 2025, 7:33:39 PM (4 weeks ago)
Author:
yann meurdesoif
Message:

Separate pbl_surface into 3 subroutines for GPU port

pbl_surface_uncompress_pre : prepare computation for sub subsurface before compressing
pbl_surface_subsrf : each sub-surface is called one after other (horizontal = knon)
pbl_surface_uncompress_post : sub-surface are uncompressed, computation is done on whole domain (horizontal = klon)

pbl_surface_main becomes the driver, calling pbl_surface_uncompress_pre, and then looping under sub-surface (and calling pbl_surface_subsrf) and then calling pbl_surface_uncompress_post.

merge of commit r5868

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/libf/phylmd/physiq_mod.F90

    r5936 r5942  
    6565    USE orografi_strato_mod, ONLY: drag_noro_strato, lift_noro_strato, sugwd_strato
    6666    USE ozonecm_m, only: ozonecm ! ozone of J.-F. Royer
    67     USE pbl_surface_mod, ONLY : pbl_surface
     67    USE pbl_surface_mod, ONLY : pbl_surface_main
    6868    USE phyaqua_mod, only: zenang_an
    6969    USE phyetat0_mod, only: phyetat0
     
    29592959       ENDIF
    29602960
    2961        CALL pbl_surface(  &
     2961              CALL pbl_surface_main(  &
    29622962            phys_tstep,     date0,     itap,    days_elapsed+1, &
    29632963            debut,     lafin, &
     
    29912991            kh,kh_x,kh_w, &
    29922992                                !>nrlmd
    2993             coefh(1:klon,1:klev,1:nbsrf+1), coefm(1:klon,1:klev,1:nbsrf+1), &
     2993            coefh, coefm, &
    29942994            slab_wfbils,                 &
    29952995            qsol,      zq2m,      s_pblh,  s_lcl, &
Note: See TracChangeset for help on using the changeset viewer.