Skip to content

Follow a WOperator's Jacobian in has_concretization - #427

Merged
ChrisRackauckas merged 2 commits into
SciML:masterfrom
AJ0070:fix/woperator-has-concretization
Aug 26, 2026
Merged

ChrisRackauckas merged 2 commits into
SciML:masterfrom
AJ0070:fix/woperator-has-concretization

Conversation

@AJ0070

@AJ0070 AJ0070 commented Aug 26, 2026

Copy link
Copy Markdown
Member

has_concretization(::AbstractWOperator) was an unconditional true, so a WOperator over a matrix-free Jacobian claimed a concrete form it cannot produce and callers that guard on the trait still threw from convert. Every other wrapping operator here already follows what it wraps, so this does the same and ANDs the mass matrix with the Jacobian.

Left the abstract method returning true and put the new one on WOperator, since a subtype like the GenericWOperator in the tests has no mass_matrix or J to ask.

Found from SciML/LinearSolve.jl#1236, where the default solver builds a cacheval for every slot and the concretizing ones threw a MethodError out of init.

AI Disclosure: Used Opus 5

Comment thread src/woperator.jl Resolved
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.

2 participants