Skip to content

Add scalar geometry option - #53

Merged
michalhabera merged 7 commits into
mainfrom
michal/force-geom-type
Aug 25, 2026
Merged

Add scalar geometry option#53
michalhabera merged 7 commits into
mainfrom
michal/force-geom-type

Conversation

@michalhabera

Copy link
Copy Markdown
Collaborator

With form_compiler_options={"scalar_geometry": True} this forces the C++ backend to generated the code that uses the same template type T to be used for the assembled tensor and also for all geometry quantities.

Much better fix would be to properly support different types in FFCx, that is for a larger rewrite.

@schnellerhase schnellerhase left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Needs a unit test.

Comment thread ffcx_backends/cpp.py Outdated

@schnellerhase schnellerhase left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Can we create an issue to track reverting this once we have proper support for other geometry types?

Comment thread test/test_cpp.py Outdated
Co-authored-by: Paul T. Kühner <56360279+schnellerhase@users.noreply.github.com>
@michalhabera
michalhabera merged commit f4de562 into main Aug 25, 2026
13 checks passed
@michalhabera
michalhabera deleted the michal/force-geom-type branch August 25, 2026 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C++ 🚀 feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants