diff --git a/pymatgen/io/vasp/outputs.py b/pymatgen/io/vasp/outputs.py index 6d1e6a824ec..c944f2cd246 100644 --- a/pymatgen/io/vasp/outputs.py +++ b/pymatgen/io/vasp/outputs.py @@ -1219,7 +1219,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(