Skip to content

Commit 58a1833

Browse files
committed
get device suffix correctly
1 parent e3e2088 commit 58a1833

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

experiments/AMIP/coupler_driver.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -762,7 +762,7 @@ debug(cs, debug_dir * "/8_after_solve_")
762762

763763

764764
# Save states after simulation for CPU/GPU comparison
765-
device_suffix = comms_ctx isa ClimaComms.AbstractCPUDevice ? "cpu" : "gpu"
765+
device_suffix = comms_ctx.device isa ClimaComms.AbstractCPUDevice ? "cpu" : "gpu"
766766

767767
# Extract atmos state variables
768768
atmos_ρe_tot = cs.model_sims.atmos_sim.integrator.u.c.ρe_tot

0 commit comments

Comments
 (0)