Skip to content

Commit 5637764

Browse files
authored
revert LMAXMIX fix in #3041 (#3189)
1 parent e1f260c commit 5637764

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pymatgen/io/vasp/sets.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -526,12 +526,11 @@ def incar(self) -> Incar:
526526
# significant difference between SCF -> NonSCF even without Hubbard U enabled.
527527
# Thanks to Andrew Rosen for investigating and reporting.
528528
if "LMAXMIX" not in settings:
529-
blocks = {site.specie.block for site in structure}
530529
# contains f-electrons
531-
if "f" in blocks:
530+
if any(el.Z > 56 for el in structure.composition):
532531
incar["LMAXMIX"] = 6
533532
# contains d-electrons
534-
elif "d" in blocks:
533+
elif any(el.Z > 20 for el in structure.composition):
535534
incar["LMAXMIX"] = 4
536535

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

0 commit comments

Comments
 (0)