Skip to content

Make sure properties export only happens from root process - #1864

Merged
pshriwise merged 1 commit into
openmc-dev:developfrom
paulromano:properties-export-fix
Aug 2, 2021
Merged

pshriwise merged 1 commit into
openmc-dev:developfrom
paulromano:properties-export-fix

Conversation

@paulromano

Copy link
Copy Markdown
Contributor

If an external application calls openmc_properties_export from multiple processes, it will lead to HDF5 errors due to multiple processes trying to create the same file. This PR simply ensures that only one process will export properties.

@paulromano
paulromano requested a review from pshriwise August 2, 2021 17:41

@pshriwise pshriwise left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks @paulromano! Sorry I didn't catch this during review for the original PR for this feature.

@pshriwise
pshriwise merged commit 096ddc4 into openmc-dev:develop Aug 2, 2021
@paulromano
paulromano deleted the properties-export-fix branch August 2, 2021 21:13
apingegno pushed a commit to apingegno/openmc that referenced this pull request May 7, 2026
Make sure properties export only happens from root process
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