Skip to content

Commit 2bf5e04

Browse files
committed
debug
1 parent 63394d4 commit 2bf5e04

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

experiments/ClimaEarth/run_cloudless_aquaplanet.jl

+4-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ restart_t = Int(0)
6565

6666
## coupler simulation specific configuration
6767
Δt_cpl = Float64(400)
68-
t_end = "1000days"
68+
t_end = "160days"
6969
tspan = (Float64(0.0), Float64(time_to_seconds(t_end)))
7070
start_date = "19790301"
7171
hourly_checkpoint = true
@@ -374,3 +374,6 @@ end
374374

375375

376376
solve_coupler!(cs)
377+
378+
include("debug_plots.jl")
379+
debug(cs, dir_paths.artifacts)

experiments/ClimaEarth/user_io/debug_plots.jl

+5-5
Original file line numberDiff line numberDiff line change
@@ -133,12 +133,12 @@ Interfacer.get_field(sim::ClimaAtmosSimulation, ::Val{:ρq_tot}) =
133133
Interfacer.get_field(sim::ClimaAtmosSimulation, ::Val{:ρe_tot}) = sim.integrator.u.c.ρe_tot
134134

135135
# additional BucketSimulation debug fields
136-
Interfacer.get_field(sim::BucketSimulation, ::Val{:σS}) = sim.integrator.u.bucket.σS
137-
Interfacer.get_field(sim::BucketSimulation, ::Val{:Ws}) = sim.integrator.u.bucket.Ws
138-
Interfacer.get_field(sim::BucketSimulation, ::Val{:W}) = sim.integrator.u.bucket.W
136+
# Interfacer.get_field(sim::BucketSimulation, ::Val{:σS}) = sim.integrator.u.bucket.σS
137+
# Interfacer.get_field(sim::BucketSimulation, ::Val{:Ws}) = sim.integrator.u.bucket.Ws
138+
# Interfacer.get_field(sim::BucketSimulation, ::Val{:W}) = sim.integrator.u.bucket.W
139139

140140
# currently selected plot fields
141141
plot_field_names(sim::Interfacer.SurfaceModelSimulation) = (:area_fraction, :surface_temperature, :surface_humidity)
142-
plot_field_names(sim::BucketSimulation) =
143-
(:area_fraction, :surface_temperature, :surface_humidity, :air_density, :σS, :Ws, :W)
142+
# plot_field_names(sim::BucketSimulation) =
143+
# (:area_fraction, :surface_temperature, :surface_humidity, :air_density, :σS, :Ws, :W)
144144
plot_field_names(sim::ClimaAtmosSimulation) = (:w, :ρq_tot, :ρe_tot, :liquid_precipitation, :snow_precipitation)

0 commit comments

Comments
 (0)