Skip to content

Commit 5896f4f

Browse files
committed
use cpu device
1 parent a3cdf37 commit 5896f4f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

experiments/AMIP/user_io/debug_plots.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function debug(cs_fields::NamedTuple, dir, cs_fields_ref = nothing)
4343
:z0m_S,
4444
)
4545
all_plots = []
46-
cpu_comms_ctx = ClimaComms.SingletonCommsContext()
46+
cpu_comms_ctx = ClimaComms.SingletonCommsContext(ClimaComms.CPUSingleThreaded())
4747

4848
for field_name in field_names
4949
field = getproperty(cs_fields, field_name)
@@ -128,7 +128,7 @@ function debug(sim::ComponentModelSimulation, dir)
128128

129129
@show name(sim)
130130
field_names = plot_field_names(sim)
131-
cpu_comms_ctx = ClimaComms.SingletonCommsContext()
131+
cpu_comms_ctx = ClimaComms.SingletonCommsContext(ClimaComms.CPUSingleThreaded())
132132

133133
all_plots = []
134134
for field_name in field_names

0 commit comments

Comments
 (0)