Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion pymatgen/io/vasp/outputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -722,6 +722,10 @@ def run_type(self) -> str:

Hubbard U terms and vdW corrections are detected automatically as well.
"""

# Care should be taken: if a GGA tag is not specified, VASP will default
# to the functional specified by the POTCAR. It is not clear how
# VASP handles the "--" value.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is not clear how VASP handles the "--" value.

i think @esoteric-ephemera figured out what happens for --

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It still runs but it's not a great practice for clarity of results

GGA_TYPES = {
"RE": "revPBE",
"PE": "PBE",
Expand Down Expand Up @@ -1356,7 +1360,9 @@ def _parse_params(self, elem: XML_Element) -> dict:
"""Parse INCAR parameters."""
params: dict = {}
for c in elem:
name = c.attrib.get("name", "")
# VASP 6.4.3 can add trailing whitespace
# for example, <i type="string" name="GGA ">PE</i>
name = c.attrib.get("name", "").strip()
if c.tag not in {"i", "v"}:
p = self._parse_params(c)
if name == "response functions":
Expand Down