Skip to content

Commit

Permalink
Merge pull request #569 from SciML/ap/err_kwarg
Browse files Browse the repository at this point in the history
Throw an error if p is supplied as kwarg
  • Loading branch information
ChrisRackauckas authored Dec 24, 2023
2 parents 483d022 + 91f651d commit acdb34f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "SciMLBase"
uuid = "0bca4576-84f4-4d90-8ffe-ffa030f20462"
authors = ["Chris Rackauckas <[email protected]> and contributors"]
version = "2.11.5"
version = "2.11.6"

[deps]
ADTypes = "47edcb42-4c32-4615-8424-f2b9edc5f35b"
Expand Down
3 changes: 3 additions & 0 deletions src/problems/basic_problems.jl
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,9 @@ struct NonlinearProblem{uType, isinplace, P, F, K, PT} <:
p = NullParameters(),
problem_type = StandardNonlinearProblem();
kwargs...) where {iip}
if haskey(kwargs, :p)
error("`p` specified as a keyword argument `p = $(kwargs[:p])` to `NonlinearProblem`. This is not supported.")
end
warn_paramtype(p)
new{typeof(u0), iip, typeof(p), typeof(f),
typeof(kwargs), typeof(problem_type)}(f,
Expand Down

0 comments on commit acdb34f

Please sign in to comment.