Skip to content

Geometry modernization - #344

Open
softmattertheory wants to merge 103 commits into
devfrom
functionalcleanup
Open

Geometry modernization#344
softmattertheory wants to merge 103 commits into
devfrom
functionalcleanup

Conversation

@softmattertheory

Copy link
Copy Markdown
Contributor

Extensive updates to geometry package:

  • Significant performance improvements due to work estimator, new per-worker initialization and teardown.
  • Field now supports complex numbers and complex matrices; distinct subtypes e.g. ScalarField, ComplexField, MatrixField etc.
  • Additional finite elements for piecewise constant functions.
  • Old quadrature routines removed in favor of the new quadrature routine, which is almost always faster.
  • Meshtools now provides SelectionBuilder with star, link and closure.
  • All function and method definitions provide signatures and use multiple dispatch.
  • Functionals are more standardized; all now provide grade information.
  • Code clean; functional definitions in subfolders.

softmattertheory and others added 30 commits August 19, 2026 06:32
Length, Area, AreaEnclosed, Volume, and VolumeEnclosed now dispatch on Mesh / Mesh+Selection (and integrand(mesh, id)) instead of sniffing arguments, with unmatched calls falling through to MltplDsptchFld. Old sniffing macros remain for the remaining classes.

Co-authored-by: Cursor <cursoragent@cursor.com>
@emmanuellfc

Copy link
Copy Markdown
Collaborator

This represents a significant improvement in Morpho development. I've been using and testing this branch in my own projects, and it has performed very well across the workflows I've tried. The performance gains are particularly noticeable, with a substantial improvement in overall runtime and responsiveness. From my testing so far, this branch feels like a major step forward.

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