Skip to content

Commit

Permalink
Raise error on non-zero pressure
Browse files Browse the repository at this point in the history
  • Loading branch information
pmrv committed Jun 28, 2021
1 parent 895b78a commit 2b654b5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pyiron_atomistics/vasp/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -963,8 +963,10 @@ def calc_minimize(
else:
if pressure == 0.0:
self.input.incar["ISIF"] = 3
else:
elif pressure is None:
self.input.incar["ISIF"] = 2
else:
raise ValueError("Non-zero pressure not supported!")

if max_iter:
electronic_steps = max_iter
Expand Down

0 comments on commit 2b654b5

Please sign in to comment.