Skip to content

Commit 467b521

Browse files
committed
re-enable non-ITime compatibility
1 parent 15759cf commit 467b521

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

config/ci_configs/slabplanet_albedo_function.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@ precip_model: "0M"
1010
rad: "gray"
1111
share_surface_space: false
1212
t_end: "1days"
13+
use_itime: false
1314
vert_diff: "true"

experiments/ClimaEarth/components/ocean/prescr_ocean.jl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,10 +198,8 @@ function set_albedos!(sim::PrescribedOceanSimulation, t)
198198
FT = CC.Spaces.undertype(axes(sim.cache.T_sfc))
199199

200200
# Compute the current date
201-
current_date = t isa ClimaUtilities.TimeManager.ITime ? date(t) : p.start_date + Dates.second(t)
201+
current_date = t isa ClimaUtilities.TimeManager.ITime ? date(t) : p.start_date + Dates.Second(t)
202202

203-
# TODO: Where does this date0 come from?
204-
date0 = Dates.DateTime("2000-01-01T11:58:56.816")
205203
insolation_params = InsolationParameters(FT)
206204
d, δ, η_UTC = FT.(Insolation.helper_instantaneous_zenith_angle(current_date, insolation_params))
207205

src/Interfacer.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ Return the model date at the current timestep.
9595
# Arguments
9696
- `cs`: [CoupledSimulation] containing info about the simulation
9797
"""
98-
current_date(cs::CoupledSimulation) = cs.t[] isa ITime ? date(cs.t[]) : cs.start_date + Dates.second(cs.t[])
98+
current_date(cs::CoupledSimulation) = cs.t[] isa ITime ? date(cs.t[]) : cs.start_date[] + Dates.Second(cs.t[])
9999

100100
"""
101101
default_coupler_fields()

0 commit comments

Comments
 (0)