From 5896f4f3d77f4994567cdcf23efae7d820be994d Mon Sep 17 00:00:00 2001 From: Julia Sloan Date: Tue, 19 Mar 2024 15:14:37 -0700 Subject: [PATCH] use cpu device --- experiments/AMIP/user_io/debug_plots.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/experiments/AMIP/user_io/debug_plots.jl b/experiments/AMIP/user_io/debug_plots.jl index 4f21cae99a..c84ccf501f 100644 --- a/experiments/AMIP/user_io/debug_plots.jl +++ b/experiments/AMIP/user_io/debug_plots.jl @@ -43,7 +43,7 @@ function debug(cs_fields::NamedTuple, dir, cs_fields_ref = nothing) :z0m_S, ) all_plots = [] - cpu_comms_ctx = ClimaComms.SingletonCommsContext() + cpu_comms_ctx = ClimaComms.SingletonCommsContext(ClimaComms.CPUSingleThreaded()) for field_name in field_names field = getproperty(cs_fields, field_name) @@ -128,7 +128,7 @@ function debug(sim::ComponentModelSimulation, dir) @show name(sim) field_names = plot_field_names(sim) - cpu_comms_ctx = ClimaComms.SingletonCommsContext() + cpu_comms_ctx = ClimaComms.SingletonCommsContext(ClimaComms.CPUSingleThreaded()) all_plots = [] for field_name in field_names