Skip to content

Commit 9d10698

Browse files
committed
fix vertical_transport with vanleer_limiter on GPU
1 parent a2b15aa commit 9d10698

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

.buildkite/pipeline.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1281,7 +1281,7 @@ steps:
12811281
CLIMACOMMS_DEVICE: "CUDA"
12821282
CLIMA_NAME_CUDA_KERNELS_FROM_STACK_TRACE: "true"
12831283
agents:
1284-
slurm_mem: 24GB
1284+
slurm_mem: 32GB
12851285
slurm_gpus: 1
12861286

12871287
- group: "Flame graphs"

config/model_configs/diagnostic_edmfx_aquaplanet_gpu.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ edmfx_detr_model: "Generalized"
99
edmfx_nh_pressure: true
1010
edmfx_sgs_mass_flux: true
1111
edmfx_sgs_diffusive_flux: true
12+
edmfx_sgsflux_upwinding: "vanleer_limiter"
13+
edmfx_tracer_upwinding: "vanleer_limiter"
1214
moist: equil
1315
cloud_model: "quadrature_sgs"
1416
precip_model: 0M

src/prognostic_equations/implicit/implicit_tendency.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ end
8686
function vertical_transport(ᶜρ, ᶠu³, ᶜχ, dt, ::Val{:vanleer_limiter})
8787
ᶜJ = Fields.local_geometry_field(axes(ᶜρ)).J
8888
ᶠJ = Fields.local_geometry_field(axes(ᶠu³)).J
89+
FT = eltype(ᶠJ)
90+
dt = FT(dt)
8991
return @. lazy(
9092
-(ᶜadvdivᵥ(ᶠinterp(ᶜρ * ᶜJ) / ᶠJ * ᶠlin_vanleer(ᶠu³, ᶜχ, dt))),
9193
)

0 commit comments

Comments
 (0)