Skip to content

Conversation

leo-collins
Copy link
Contributor

@leo-collins leo-collins commented Sep 26, 2025

An attempt to clean up interpolation code. Currently includes #4582. So far:

  • Removed interp_data dictionary in favour of the InterpolateOptions dataclass. We get type hinting, better IDE support, single source of truth for these options.
  • Interpolator becomes an internal object. I removed the __new__ method and dispatch instead with a _get_interpolator function.
  • We can now matfree adjoint interpolate cross-mesh and VomOntoVom. The renumbering malarkey is completely removed.
  • Can now assemble cross-mesh interpolation operators, both forward and adjoint.

test -> trial

fix hypre-ads
cofunction docstring
typing
commit 3aeb517
Author: Pablo Brubeck <[email protected]>
Date:   Wed Oct 1 17:17:44 2025 +0100

    Test the MixedInterpolator 0-form across different meshes

commit fee366a
Author: Pablo Brubeck <[email protected]>
Date:   Wed Oct 1 16:56:56 2025 +0100

    Implement missing functionality in CrossMeshInterpolator

commit e400fc9
Author: Pablo Brubeck <[email protected]>
Date:   Wed Oct 1 15:16:39 2025 +0100

    cleanup

commit 997e638
Author: Pablo Brubeck <[email protected]>
Date:   Wed Oct 1 12:57:59 2025 +0100

    cleanup

commit f1080ea
Author: Pablo Brubeck <[email protected]>
Date:   Wed Oct 1 09:11:07 2025 +0100

    Interpolate: support fieldsplit

commit 76ec367
Author: Pablo Brubeck <[email protected]>
Date:   Wed Oct 1 07:26:07 2025 +0100

    Fixup

commit 3bd935e
Author: Pablo Brubeck <[email protected]>
Date:   Wed Oct 1 00:23:21 2025 +0100

    MixedInterpolator
fix options

fixes
First stage of removing the renumbered interpolate
@leo-collins leo-collins force-pushed the leo/refactor_interpolate branch from 2bd7a49 to 7b4717a Compare October 11, 2025 14:32
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.

4 participants