Skip to content

Commit

Permalink
Merge pull request #2165 from rkingsbury/qcoutput_lebdevpts
Browse files Browse the repository at this point in the history
QChem: detect NLebdevPts error in QCOutput
  • Loading branch information
mkhorton committed Jun 17, 2021
2 parents d1b12c3 + 7ff37b4 commit df22c1a
Show file tree
Hide file tree
Showing 4 changed files with 403 additions and 1 deletion.
9 changes: 9 additions & 0 deletions pymatgen/io/qchem/outputs.py
Expand Up @@ -1264,6 +1264,15 @@ def _check_completion_errors(self):
== [[]]
):
self.data["errors"] += ["premature_end_FileMan_error"]
elif (
read_pattern(
self.text,
{"key": r"need to increase the array of NLebdevPts"},
terminate_on_match=True,
).get("key")
== [[]]
):
self.data["errors"] += ["NLebdevPts"]
elif read_pattern(self.text, {"key": r"method not available"}, terminate_on_match=True).get("key") == [[]]:
self.data["errors"] += ["method_not_available"]
elif (
Expand Down
2 changes: 1 addition & 1 deletion pymatgen/io/qchem/tests/single_job.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions pymatgen/io/qchem/tests/test_outputs.py
Expand Up @@ -146,6 +146,7 @@
"new_qchem_files/mpi_error.qout",
"new_qchem_files/molecule_read_error.qout",
"new_qchem_files/basis_not_supported.qout",
"new_qchem_files/lebdevpts.qout",
"new_qchem_files/Optimization_no_equal.qout",
"new_qchem_files/2068.qout",
"new_qchem_files/2620.qout",
Expand Down

0 comments on commit df22c1a

Please sign in to comment.