Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only call mesh.init_cell_orientations if it hasn't been called before #384

Merged
merged 1 commit into from
Jul 24, 2023

Conversation

JHopeCollins
Copy link
Collaborator

Domain assumes that if the mesh is on the sphere then it needs to call mesh.init_cell_orientations. However, if the cells orientations have already been initialised before the mesh is passed to Domain then Firedrake will raise an error.

This PR just adds a check before calling init_cell_orientations to avoid this situation.

@JHopeCollins JHopeCollins added the bug Pull requests or issues to relating to something not working label Jul 22, 2023
Copy link
Contributor

@tommbendall tommbendall left a comment

Choose a reason for hiding this comment

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

Thanks Josh! This seems very sensible

@tommbendall tommbendall merged commit d4e9451 into main Jul 24, 2023
@jshipton jshipton deleted the JHopeCollins/mesh_init_orientations branch March 20, 2024 11:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Pull requests or issues to relating to something not working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants