Skip to content

fix: fix MPI race condition in permittivity file output#3

Open
yxpw wants to merge 1 commit into
kYangLi:mainfrom
yxpw:main
Open

fix: fix MPI race condition in permittivity file output#3
yxpw wants to merge 1 commit into
kYangLi:mainfrom
yxpw:main

Conversation

@yxpw

@yxpw yxpw commented May 13, 2026

Copy link
Copy Markdown

Move root rank check before opening the output file to prevent multiple MPI processes from simultaneously creating/truncating the file. This fixes intermittent null bytes appearing at the beginning of permittivity.dat when running with multiple processes.

Move root rank check before opening the output file to prevent multiple
MPI processes from simultaneously creating/truncating the file. This
fixes intermittent null bytes appearing at the beginning of
permittivity.dat when running with multiple processes.
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.

1 participant