Skip to content

Commit

Permalink
Remove config validation outside validation.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
visr committed Apr 16, 2024
1 parent e10f657 commit 85cc8d9
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions core/src/model.jl
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,6 @@ function Model(config::Config)::Model
TimerOutputs.enable_debug_timings(Ribasim) # causes recompilation (!)
end

t_end = seconds_since(config.endtime, config.starttime)
if t_end <= 0
error("Model starttime is not before endtime.")
end

# All data from the database that we need during runtime is copied into memory,
# so we can directly close it again.
db = SQLite.DB(db_path)
Expand Down

0 comments on commit 85cc8d9

Please sign in to comment.