-
-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ambiguity error for DynamicalDDEProblem
#42
Comments
I think that could work. |
In general, the history function Would it be possible to remove the type constraints on SciMLBase.jl/src/problems/dde_problems.jl Line 80 in d67b76e
SciMLBase.jl/src/problems/dde_problems.jl Line 100 in d67b76e
f1 and f2 .
|
Closed by #43 |
Running
gives
The above ambiguities refer only to two function definitions:
https://github.com/SciML/SciMLBase.jl/blob/v1.9.0/src/problems/dde_problems.jl#L77-L82
As a MWE:
which gives
The problem appears due to the fact that
DynamicalDDEFunction <: Function
and the commit c555ead removed the restriction on theh
argument and thus in bothand
the first argument fits the method, but for the second argument we have
Any
in the first case (which was more specific) andFunction
in the second (which is more specific thanAny
).One option would be to revert the suggestion by @devmotion in c555ead
The other would be to replace
with two separate methods, but this would result in code duplication as mentioned in #14 (comment)
I can open a PR to fix this if you would like, just let me know what approach do you think is best.
The text was updated successfully, but these errors were encountered: