Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
hersle committed Jul 19, 2024
1 parent 4d62d11 commit 699a98d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/systems/diffeqs/abstractodesystem.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1567,7 +1567,8 @@ function InitializationProblem{iip, specialize}(sys::AbstractODESystem,
defs = defaults(isys)

# Check that all unknowns have guesses
unknowns_missing = setdiff(unknowns(isys), union(keys(guesses), keys(defs), keys(u0map)))
unknowns_given = union(keys(guesses), keys(defs), keys(u0map))
unknowns_missing = setdiff(unknowns(isys), unknowns_given)
!isempty(unknowns_missing) &&
throw(ArgumentError("Missing guesses for unknowns $(join(unknowns_missing, ", "))."))

Expand Down

0 comments on commit 699a98d

Please sign in to comment.