Skip to content

Commit

Permalink
Merge pull request #1061 from CliMA/js/coupledsim
Browse files Browse the repository at this point in the history
remove t and parsed_args from CoupledSimulation
  • Loading branch information
juliasloan25 authored Nov 6, 2024
2 parents 91878a6 + d5a932c commit 022f580
Show file tree
Hide file tree
Showing 13 changed files with 0 additions and 36 deletions.
2 changes: 0 additions & 2 deletions experiments/ClimaEarth/run_amip.jl
Original file line number Diff line number Diff line change
Expand Up @@ -628,10 +628,8 @@ cs = Interfacer.CoupledSimulation{FT}(
dates,
boundary_space,
coupler_fields,
config_dict,
conservation_checks,
[tspan[1], tspan[2]],
atmos_sim.integrator.t,
Δt_cpl,
model_sims,
mode_specifics,
Expand Down
2 changes: 0 additions & 2 deletions experiments/ClimaEarth/run_cloudless_aquaplanet.jl
Original file line number Diff line number Diff line change
Expand Up @@ -251,10 +251,8 @@ cs = Interfacer.CoupledSimulation{FT}(
dates,
boundary_space,
coupler_fields,
config_dict,
nothing, # conservation checks
[tspan[1], tspan[2]],
atmos_sim.integrator.t,
Δt_cpl,
model_sims,
(;), # mode_specifics
Expand Down
2 changes: 0 additions & 2 deletions experiments/ClimaEarth/run_cloudy_aquaplanet.jl
Original file line number Diff line number Diff line change
Expand Up @@ -265,10 +265,8 @@ cs = Interfacer.CoupledSimulation{FT}(
dates,
boundary_space,
coupler_fields,
config_dict,
nothing, # conservation checks
[tspan[1], tspan[2]],
atmos_sim.integrator.t,
Δt_cpl,
model_sims,
(;), # mode_specifics
Expand Down
2 changes: 0 additions & 2 deletions experiments/ClimaEarth/run_cloudy_slabplanet.jl
Original file line number Diff line number Diff line change
Expand Up @@ -318,10 +318,8 @@ cs = Interfacer.CoupledSimulation{FT}(
dates,
boundary_space,
coupler_fields,
config_dict,
nothing, # conservation checks
[tspan[1], tspan[2]],
atmos_sim.integrator.t,
Δt_cpl,
model_sims,
(;), # mode_specifics
Expand Down
2 changes: 0 additions & 2 deletions experiments/ClimaEarth/run_dry_held_suarez.jl
Original file line number Diff line number Diff line change
Expand Up @@ -196,10 +196,8 @@ cs = Interfacer.CoupledSimulation{FT}(
dates,
boundary_space,
coupler_fields,
config_dict,
nothing, # conservation checks
[tspan[1], tspan[2]],
atmos_sim.integrator.t,
Δt_cpl,
model_sims,
(;), # mode_specifics
Expand Down
2 changes: 0 additions & 2 deletions experiments/ClimaEarth/run_moist_held_suarez.jl
Original file line number Diff line number Diff line change
Expand Up @@ -247,10 +247,8 @@ cs = Interfacer.CoupledSimulation{FT}(
dates,
boundary_space,
coupler_fields,
config_dict,
nothing, # conservation checks
[tspan[1], tspan[2]],
atmos_sim.integrator.t,
Δt_cpl,
model_sims,
(;), # mode_specifics
Expand Down
4 changes: 0 additions & 4 deletions src/Interfacer.jl
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,8 @@ struct CoupledSimulation{
D,
B,
FV,
P,
E,
TS,
TI <: Real,
DTI <: Real,
NTMS <: NamedTuple,
NTM <: NamedTuple,
Expand All @@ -60,10 +58,8 @@ struct CoupledSimulation{
dates::D
boundary_space::B
fields::FV
parsed_args::P
conservation_checks::E
tspan::TS
t::TI
Δt_cpl::DTI
model_sims::NTMS
mode::NTM
Expand Down
4 changes: 0 additions & 4 deletions test/conservation_checker_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,8 @@ for FT in (Float32, Float64)
nothing, # dates
space, # boundary_space
cf, # fields
nothing, # parsed_args
cc, # conservation_checks
(Int(0), Int(1000)), # tspan
Int(200), # t
Int(200), # Δt_cpl
model_sims, # model_sims
(;), # mode
Expand Down Expand Up @@ -168,10 +166,8 @@ for FT in (Float32, Float64)
nothing, # dates
space, # boundary_space
cf, # fields
nothing, # parsed_args
cc, # conservation_checks
(Int(0), Int(1000)), # tspan
Int(200), # t
Int(200), # Δt_cpl
model_sims, # model_sims
(;), # mode
Expand Down
2 changes: 0 additions & 2 deletions test/debug/debug_amip_plots.jl
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,8 @@ plot_field_names(sim::Interfacer.SurfaceStub) = (:stub_field,)
nothing, # dates
nothing, # boundary_space
coupler_fields, # fields
nothing, # parsed_args
nothing, # conservation_checks
(Int(0), Int(1)), # tspan
Int(200), # t
Int(200), # Δt_cpl
model_sims, # model_sims
(;), # mode
Expand Down
2 changes: 0 additions & 2 deletions test/flux_calculator_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -313,10 +313,8 @@ for FT in (Float32, Float64)
nothing, # dates
nothing, # boundary_space
coupler_fields, # fields
nothing, # parsed_args
nothing, # conservation_checks
(Int(0), Int(1)), # tspan
0, # t
0, # Δt_cpl
model_sims, # model_sims
(;), # mode
Expand Down
2 changes: 0 additions & 2 deletions test/interfacer_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,8 @@ for FT in (Float32, Float64)
nothing, # dates
nothing, # boundary_space
nothing, # fields
nothing, # parsed_args
nothing, # conservation_checks
(Int(0), Int(1000)), # tspan
Int(200), # t
Int(200), # Δt_cpl
(;), # model_sims
(;), # mode
Expand Down
2 changes: 0 additions & 2 deletions test/regridder_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,8 @@ for FT in (Float32, Float64)
nothing, # dates
nothing, # boundary_space
nothing, # fields
nothing, # parsed_args
nothing, # conservation_checks
(Int(0), Int(1000)), # tspan
Int(200), # t
Int(200), # Δt_cpl
(;
ice_sim = DummyStub((; area_fraction = ice_d)),
Expand Down
8 changes: 0 additions & 8 deletions test/time_manager_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,8 @@ for FT in (Float32, Float64)
dates, # dates
nothing, # boundary_space
nothing, # fields
nothing, # parsed_args
nothing, # conservation_checks
tspan, # tspan
Int(0), # t
Int(Δt_cpl), # Δt_cpl
(;), # model_sims
(;), # mode
Expand Down Expand Up @@ -60,10 +58,8 @@ end
dates, # dates
nothing, # boundary_space
nothing, # fields
nothing, # parsed_args
nothing, # conservation_checks
(Int(0), Int(1000)), # tspan
Int(200), # t
Int(200), # Δt_cpl
(;), # model_sims
(;), # mode
Expand Down Expand Up @@ -96,10 +92,8 @@ end
dates, # dates
nothing, # boundary_space
nothing, # fields
nothing, # parsed_args
nothing, # conservation_checks
(Int(0), Int(1000)), # tspan
Int(200), # t
Int(200), # Δt_cpl
(;), # model_sims
(;), # mode
Expand Down Expand Up @@ -164,10 +158,8 @@ end
dates, # dates
nothing, # boundary_space
nothing, # fields
nothing, # parsed_args
nothing, # conservation_checks
(Int(0), Int(1000)), # tspan
Int(200), # t
Int(200), # Δt_cpl
(;), # model_sims
(;), # mode
Expand Down

0 comments on commit 022f580

Please sign in to comment.