Skip to content

Commit

Permalink
Fix bad var name
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew-S-Rosen committed Jun 4, 2023
1 parent d6bd319 commit 16839ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/atomate2/vasp/sets/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -919,7 +919,7 @@ def _set_u_params(incar, incar_settings, structure):
# investigation it was determined that this would lead to a significant difference
# between SCF -> NonSCF even without Hubbard U enabled. Thanks to Andrew Rosen for
# investigating and reporting.
blocks = [site.specie.block for site in struct]
blocks = [site.specie.block for site in structure]
if "LMAXMIX" not in incar_settings.keys():
# contains f-electrons
if "d" in blocks:
Expand All @@ -933,7 +933,7 @@ def _set_lmaxtau(incar, incar_settings, structure):
"""Modify LMAXTAU for use with LASPH."""
# Set LMAXTAU = 8 if LASPH = True and there are f-electrons present
# See VASP manual for more details.
blocks = [site.specie.block for site in struct]
blocks = [site.specie.block for site in structure]
if incar_settings.get("LASPH", False) is True and "f" in blocks:
incar["LMAXTAU"] = 8

Expand Down

0 comments on commit 16839ba

Please sign in to comment.