Skip to content

Commit

Permalink
revert LMAXMIX fix in #3041 (#3189)
Browse files Browse the repository at this point in the history
  • Loading branch information
janosh authored Jul 27, 2023
1 parent e1f260c commit 5637764
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pymatgen/io/vasp/sets.py
Original file line number Diff line number Diff line change
Expand Up @@ -526,12 +526,11 @@ def incar(self) -> Incar:
# significant difference between SCF -> NonSCF even without Hubbard U enabled.
# Thanks to Andrew Rosen for investigating and reporting.
if "LMAXMIX" not in settings:
blocks = {site.specie.block for site in structure}
# contains f-electrons
if "f" in blocks:
if any(el.Z > 56 for el in structure.composition):
incar["LMAXMIX"] = 6
# contains d-electrons
elif "d" in blocks:
elif any(el.Z > 20 for el in structure.composition):
incar["LMAXMIX"] = 4

# Warn user about LASPH for +U, meta-GGAs, hybrids, and vdW-DF
Expand Down

0 comments on commit 5637764

Please sign in to comment.