Skip to content

Commit

Permalink
Fix bug in update_charge_from_potcar (#3866)
Browse files Browse the repository at this point in the history
  • Loading branch information
yanghan234 authored Jun 9, 2024
1 parent b0d9946 commit 735db5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pymatgen/io/vasp/outputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -1224,7 +1224,7 @@ def update_charge_from_potcar(self, path: PathLike | bool) -> None:
"""
potcar = self.get_potcars(path)

if potcar and self.incar.get("ALGO", "") not in {"GW0", "G0W0", "GW", "BSE"}:
if potcar and self.incar.get("ALGO", "").upper() not in {"GW0", "G0W0", "GW", "BSE"}:
nelect = self.parameters["NELECT"]
if len(potcar) == len(self.initial_structure.composition.element_composition):
potcar_nelect = sum(
Expand Down

0 comments on commit 735db5b

Please sign in to comment.