-
Notifications
You must be signed in to change notification settings - Fork 519
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
Error when loading mesh from statepoint #3249
Comments
a h5dump of the statepoint file shows that the type is "unstructured"
So I think the fix is to change this line
to
|
Ah perhaps this is just due to me reading a statepoint file produced with the version of openmc before the #3221 and reading it with a newer version |
Confirmed this is just that the statepoint mesh reading part of the python API is not compatible with statepoints written with earlier versions API. |
Hrmmm yeah before that PR the |
OR we should increment the statepoint version, but I think in this case I'd rather revert the file structure change. |
Bug Description
I think the changes introduced by #3221 broke some of the mesh reading from a statepoint file. Not sure how it got through the CI but this is the error I'm seeing from this commit or newer in the develop branch
It looks like the unstructured mesh is somehow getting read in with routines designed for regularmesh. It is being assumed to be a regular mesh due to this line in mesh.py
Steps to Reproduce
git checkout 775c41512283d178a49c787dc5fdfe617bac4938 pip install .
Environment
openmc develop
ubuntu 24.04
python 3.12
statepoint.4.zip
The text was updated successfully, but these errors were encountered: