Skip to content

isinplace fails to infer on v1.10+ #1017

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

Open
ChrisRackauckas opened this issue May 12, 2025 · 0 comments · May be fixed by #1019
Open

isinplace fails to infer on v1.10+ #1017

ChrisRackauckas opened this issue May 12, 2025 · 0 comments · May be fixed by #1019
Assignees

Comments

@ChrisRackauckas
Copy link
Member

Method table checks were supposed to infer on v1.10+, but isinplace does not seem to infer. MWE:

using SciMLBase, Test
function fiip(du, u, p, t)
	du[1] = dx = p[1] * u[1] - p[2] * u[1] * u[2]
	du[2] = dy = -p[3] * u[2] + p[4] * u[1] * u[2]
end
p = [1.5, 1.0, 3.0, 1.0];
u0 = [1.0; 1.0];
dp = similar(p)
@inferred ODEProblem(fiip, u0, (0.0, 10.0), p) # fails
@inferred ODEProblem{true}(fiip, u0, (0.0, 10.0), p) #passes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants