Skip to content

Raise error when mesh is flat - #2363

Merged
shimwell merged 7 commits into
openmc-dev:developfrom
RemDelaporteMathurin:fix_flat_mesh
Feb 2, 2023
Merged

shimwell merged 7 commits into
openmc-dev:developfrom
RemDelaporteMathurin:fix_flat_mesh

Conversation

@RemDelaporteMathurin

Copy link
Copy Markdown
Contributor

One of our students ran into an weird hanging behaviour. We realised it is a case of #2070.
We also realised I offered to work on a fix for this exact same issue....... but never did. So here it is!

This PR adds a test for the RegularMesh corners to check if the mesh is flat (infinitely thin). If so, a ValueError is raised.

Comment thread openmc/mesh.py Outdated
Comment thread openmc/mesh.py Outdated
Comment thread openmc/mesh.py Outdated
Comment thread openmc/mesh.py Outdated
RemDelaporteMathurin and others added 2 commits January 28, 2023 08:50
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
Comment thread openmc/mesh.py
@shimwell

shimwell commented Feb 2, 2023

Copy link
Copy Markdown
Member

As this quite a small PR, mainly tests and double approved I think we can go ahead and merge this one.

@shimwell
shimwell merged commit 5c672f5 into openmc-dev:develop Feb 2, 2023
@RemDelaporteMathurin
RemDelaporteMathurin deleted the fix_flat_mesh branch February 2, 2023 13:44
apingegno pushed a commit to apingegno/openmc that referenced this pull request May 7, 2026
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