Skip to content

Add a better error message for non-concrete eltypes #1011

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

Merged
merged 1 commit into from
May 5, 2025

Conversation

ChrisRackauckas
Copy link
Member

print(io, e.eltype)
end


Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[JuliaFormatter] reported by reviewdog 🐶

Suggested change

@@ -94,6 +128,9 @@
if supports_opt_cache_interface(alg)
solve!(init(prob, alg, args...; kwargs...))
else
if prob.u0 !== nothing && !isconcretetype(eltype(prob.u0))
throw(NonConcreteEltypeError(eltype(prob.u0)))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[JuliaFormatter] reported by reviewdog 🐶

Suggested change
throw(NonConcreteEltypeError(eltype(prob.u0)))
throw(NonConcreteEltypeError(eltype(prob.u0)))

@ChrisRackauckas ChrisRackauckas merged commit a2c205b into master May 5, 2025
52 of 61 checks passed
@ChrisRackauckas ChrisRackauckas deleted the ChrisRackauckas-patch-2 branch May 5, 2025 01:39
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 this pull request may close these issues.

Error with e.g. Any[] starting condition
1 participant