Skip to content

Commit

Permalink
warning for locks with mpi disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
cmbant committed Feb 14, 2022
1 parent 1fdbb58 commit 9471699
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cobaya/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,11 @@ def lock_error(self):
pass
except OSError:
pass
if mpi.is_disabled():
raise LoggedError(self.log,
"File %s is locked by another process, you are running "
"with MPI disabled but may have more than one process. "
"Note that --test should not be used with MPI.")
if mpi.get_mpi():
import mpi4py
else:
Expand Down

0 comments on commit 9471699

Please sign in to comment.