Skip to content

Check that hdf5 has MPI if performing depletion with MPI#1268

Merged
paulromano merged 2 commits intoopenmc-dev:developfrom
drewejohnson:operator-mpi-checks
Jun 26, 2019
Merged

Check that hdf5 has MPI if performing depletion with MPI#1268
paulromano merged 2 commits intoopenmc-dev:developfrom
drewejohnson:operator-mpi-checks

Conversation

@drewejohnson
Copy link
Copy Markdown
Contributor

Check added in openmc/depletion/__init__.py. Without this check, the exporting of the Results to hdf5 will hang, as the second process attempts to write to a file that has already been opened on another process.

This error is only raised after a full transport calculation has been run. The check raises a more helpful error directly at the import from openmc.deplete, prior to transport calculations.

Check added in openmc/depletion/__init__.py.
Without this check, the exporting of the Results to hdf5 will
hang, as the second process attempts to write to a file
that has already been opened on another process.
This error is only raised after a full transport calculation
has been run.
The check raises a more helpful error directly at the import
from openmc.deplete, prior to transport calculations.
Copy link
Copy Markdown
Contributor

@paulromano paulromano left a comment

Choose a reason for hiding this comment

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

Thanks for adding this check! This has definitely bitten others before...

Comment thread openmc/deplete/__init__.py Outdated
Comment thread openmc/deplete/__init__.py Outdated
Comment thread openmc/deplete/__init__.py Outdated
@drewejohnson drewejohnson force-pushed the operator-mpi-checks branch 2 times, most recently from 899be20 to 830c023 Compare June 25, 2019 18:27
@drewejohnson
Copy link
Copy Markdown
Contributor Author

Cleaned up the imports and some typos (hence the force pushes :/)

@paulromano paulromano merged commit d10265a into openmc-dev:develop Jun 26, 2019
@paulromano
Copy link
Copy Markdown
Contributor

Thanks @drewejohnson!

@drewejohnson drewejohnson deleted the operator-mpi-checks branch July 9, 2019 18:43
apingegno pushed a commit to apingegno/openmc that referenced this pull request May 7, 2026
Check that hdf5 has MPI if performing depletion with MPI
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