Skip to content

Commit

Permalink
Oops
Browse files Browse the repository at this point in the history
  • Loading branch information
visr committed Apr 16, 2024
1 parent 340883e commit f009877
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/src/model.jl
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ function Model(config::Config)::Model
integral = zeros(length(parameters.pid_control.node_id))
u0 = ComponentVector{Float64}(; storage, integral)
# for Float32 this method allows max ~1000 year simulations without accuracy issues
t_end = seconds_since(config.endtime, config.starttime)
@assert eps(t_end) < 3600 "Simulation time too long"
t0 = zero(t_end)
timespan = (t0, t_end)
Expand Down

0 comments on commit f009877

Please sign in to comment.