Skip to content

Commit

Permalink
Merge pull request #275 from janosh/LargeSigmaHandler-fallback-to-ism…
Browse files Browse the repository at this point in the history
…ear=0

`LargeSigmaHandler` set `ISMEAR=0` if sigma reaches `0.02` minimum
  • Loading branch information
shyuep authored Jul 22, 2023
2 parents 202b941 + a86e590 commit dde93e9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions custodian/vasp/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -1285,6 +1285,15 @@ def correct(self):
"action": {"_set": {"SIGMA": sigma - 0.06}},
}
)
else:
# https://vasp.at/wiki/index.php/ISMEAR recommends ISMEAR = 0 if you have
# no a priori knowledge of your system ("then always use Gaussian smearing"
actions.append(
{
"dict": "INCAR",
"action": {"_set": {"ISMEAR": 0, "SIGMA": 0.05}},
}
)

VaspModder(vi=vi).apply_actions(actions)
return {"errors": ["LargeSigma"], "actions": actions}
Expand Down

0 comments on commit dde93e9

Please sign in to comment.