Skip to content

Conversation

@leo-collins
Copy link
Contributor

Make assembly of two-form interpolates respect the mat_type kwarg in assembly. Two-form interpolations always assemble to PETSc aij by default now, the same as for all other two-forms. To assemble a two-form interpolation between MixedFunctionSpaces into a MatNest, do assemble(interpolate(TrialFunction(V), U), mat_type="nest")

pass mat_type and sub_mat_type into Interpolator.assemble()
I think it makes the most sense for these to be set in the assemble(...)
function like for other two-forms
Alternatively, we could pass these to the interpolate(...) and add them
to the InterpolateOptions dataclass
@leo-collins leo-collins changed the title Leo/interpolate mattype Make assembly of interpolation matrices respect mat_type Nov 26, 2025
Copy link
Contributor

@connorjward connorjward left a comment

Choose a reason for hiding this comment

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

Looks pretty good. I wish you'd stop changing all this code though as I have to keep fixing my own :')

dham
dham previously approved these changes Dec 2, 2025
@leo-collins
Copy link
Contributor Author

@connorjward Can this be merged now?

@connorjward connorjward merged commit b788010 into main Dec 4, 2025
7 checks passed
@connorjward connorjward deleted the leo/interpolate-mattype branch December 4, 2025 13:59
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.

5 participants