Skip to content

Commit

Permalink
Update input.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeshingles committed Sep 1, 2024
1 parent 06b793e commit 1f96804
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions input.cc
Original file line number Diff line number Diff line change
Expand Up @@ -853,9 +853,7 @@ void read_phixs_data() {

#ifdef MPI_ON
// just in case the file system was faulty and the ranks disagree on the existence of the files
// broadcast the existence of the files to all ranks from rank 0

MPI_Bcast(phixs_file_version_exists.data(), sizeof(phixs_file_version_exists), MPI_BYTE, 0, MPI_COMM_WORLD);
MPI_Allreduce(MPI_IN_PLACE, phixs_file_version_exists.data(), 3, MPI_C_BOOL, MPI_LOR, MPI_COMM_WORLD);
#endif
assert_always(phixs_file_version_exists[1] || phixs_file_version_exists[2]); // at least one must exist
if (phixs_file_version_exists[1] && phixs_file_version_exists[2]) {
Expand Down

0 comments on commit 1f96804

Please sign in to comment.