Skip to content

Commit

Permalink
Add a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
j-otsuki committed Sep 6, 2022
1 parent dbe5a79 commit 9f211b4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/dcore/sumkdft_workers/gloc_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ def run(self):
sk.calc_mu(self.params['prec_mu'])
# calc_mu returns None when it failed in adjusting chemical potential
if sk.chemical_potential is None:
# TODO: sys.exit is not MPI safe. replace with MPI.COMM_WORLD.Abort(1)?
sys.exit("ERROR: Failed in adjusting chemical potential")
if mpi.is_master_node():
results['mu'] = float(sk.chemical_potential)
Expand Down

0 comments on commit 9f211b4

Please sign in to comment.