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

Bugfix/avoid hangs in parallel write of scalars #17

Merged

Conversation

d7919
Copy link

@d7919 d7919 commented Apr 24, 2024

Try to avoid potential hanging when writing scalars to parallel files with at least one processor passing count = 0 by ensuring the file is not in define mode before potential early exit.

For parallel files nf90_put_var may call routines which are
collective. By calling nf90_enddef here we avoid this and allow
nf90_put_var to be called on a single processor without hanging.
@ZedThree ZedThree merged commit 23a6df9 into PlasmaFAIR:main Apr 25, 2024
1 check passed
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.

3 participants