@@ -12,8 +12,8 @@ using ClimaCore
12
12
Plot the fields of a coupled simulation and save plots to a directory.
13
13
"""
14
14
function debug (cs:: CoupledSimulation , dir = " debug" , cs_fields_ref = nothing )
15
- mkpath (dir)
16
- @info " plotting debug in " * dir
15
+ # mkpath(dir)
16
+ # @info "plotting debug in " * dir
17
17
for sim in cs. model_sims
18
18
debug (sim, dir)
19
19
end
@@ -80,7 +80,7 @@ function debug(cs_fields::NamedTuple, dir, cs_fields_ref = nothing)
80
80
end
81
81
end
82
82
Plots. plot (all_plots... , size = (1500 , 800 ))
83
- Plots. png (joinpath ( dir, " debug_coupler" ) )
83
+ Plots. png (dir * " debug_coupler" )
84
84
85
85
# plot anomalies if a reference cs.fields, `cs_fields_ref`, are provided
86
86
if ! isnothing (cs_fields_ref)
@@ -99,7 +99,7 @@ function debug(cs_fields::NamedTuple, dir, cs_fields_ref = nothing)
99
99
)
100
100
end
101
101
Plots. plot (all_plots... , size = (1500 , 800 ))
102
- Plots. png (joinpath ( dir, " debug_coupler_amomalies" ) )
102
+ Plots. png (dir * " debug_coupler_amomalies" )
103
103
end
104
104
end
105
105
@@ -156,7 +156,7 @@ function debug(sim::ComponentModelSimulation, dir)
156
156
push! (all_plots, Plots. plot (cpu_field, title = string (field_name) * print_extrema (field)))
157
157
end
158
158
fig = Plots. plot (all_plots... , size = (1500 , 800 ))
159
- Plots. png (joinpath ( dir, " debug_$(name (sim)) " ) )
159
+ Plots. png (dir * " debug_$(name (sim)) " )
160
160
161
161
end
162
162
0 commit comments