Skip to content

Commit 6f794f2

Browse files
authored
Release 24.06 and add Weiqun's code for de-fusing kernels in the advection wrapper. (#1637)
1 parent 51a8eb0 commit 6f794f2

File tree

4 files changed

+24
-7
lines changed

4 files changed

+24
-7
lines changed

CHANGES

+9
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
# 24.05
2+
-- AMReX submodule set to 24.06 release hash (f141191)
3+
4+
-- SAM microphysics corrections (#1634/#1629)
5+
6+
-- Open boundaries with viscous terms (#1615)
7+
8+
-- Incompressible pathway (#1612/#1613)
9+
110
# 24.05
211
-- AMReX submodule set to 24.05 release hash (76d09f5)
312

Source/Advection/AdvectionSrcForMom_N.H

+7-3
Original file line numberDiff line numberDiff line change
@@ -303,21 +303,25 @@ AdvectionSrcForMomWrapper_N (const amrex::Box& bxx, const amrex::Box& bxy, const
303303
InterpType_H interp_w_h(w); InterpType_V interp_w_v(w); // Z-MOM
304304
WallInterpType interp_w_wall(w); // Z-MOM @ wall
305305

306-
amrex::ParallelFor(bxx, bxy, bxz,
306+
amrex::ParallelFor(bxx,
307307
[=] AMREX_GPU_DEVICE (int i, int j, int k) noexcept
308308
{
309309
rho_u_rhs(i, j, k) = -AdvectionSrcForXMom_N(i, j, k, rho_u, rho_v, rho_w,
310310
interp_u_h, interp_u_v,
311311
upw_frac_h, upw_frac_v,
312312
cellSizeInv, mf_u_inv, mf_v_inv);
313-
},
313+
});
314+
315+
amrex::ParallelFor(bxy,
314316
[=] AMREX_GPU_DEVICE (int i, int j, int k) noexcept
315317
{
316318
rho_v_rhs(i, j, k) = -AdvectionSrcForYMom_N(i, j, k, rho_u, rho_v, rho_w,
317319
interp_v_h, interp_v_v,
318320
upw_frac_h, upw_frac_v,
319321
cellSizeInv, mf_u_inv, mf_v_inv);
320-
},
322+
});
323+
324+
amrex::ParallelFor(bxz,
321325
[=] AMREX_GPU_DEVICE (int i, int j, int k) noexcept
322326
{
323327
rho_w_rhs(i, j, k) = -AdvectionSrcForZMom_N(i, j, k, rho_u, rho_v, rho_w, w,

Source/Advection/AdvectionSrcForMom_T.H

+7-3
Original file line numberDiff line numberDiff line change
@@ -380,21 +380,25 @@ AdvectionSrcForMomWrapper (const amrex::Box& bxx, const amrex::Box& bxy, const a
380380
InterpType_H interp_w_h(w); InterpType_V interp_w_v(w); // Z-MOM
381381
WallInterpType interp_w_wall(w); // Z-MOM @ wall
382382

383-
amrex::ParallelFor(bxx, bxy, bxz,
383+
amrex::ParallelFor(bxx,
384384
[=] AMREX_GPU_DEVICE (int i, int j, int k) noexcept
385385
{
386386
rho_u_rhs(i, j, k) = -AdvectionSrcForXMom(i, j, k, rho_u, rho_v, Omega, z_nd, ax, ay, az, detJ,
387387
interp_u_h, interp_u_v,
388388
upw_frac_h, upw_frac_v,
389389
cellSizeInv, mf_u_inv, mf_v_inv);
390-
},
390+
});
391+
392+
amrex::ParallelFor(bxy,
391393
[=] AMREX_GPU_DEVICE (int i, int j, int k) noexcept
392394
{
393395
rho_v_rhs(i, j, k) = -AdvectionSrcForYMom(i, j, k, rho_u, rho_v, Omega, z_nd, ax, ay, az, detJ,
394396
interp_v_h, interp_v_v,
395397
upw_frac_h, upw_frac_v,
396398
cellSizeInv, mf_u_inv, mf_v_inv);
397-
},
399+
});
400+
401+
amrex::ParallelFor(bxz,
398402
[=] AMREX_GPU_DEVICE (int i, int j, int k) noexcept
399403
{
400404
rho_w_rhs(i, j, k) = -AdvectionSrcForZMom(i, j, k, rho_u, rho_v, Omega, w, z_nd, ax, ay, az, detJ,

0 commit comments

Comments
 (0)