Skip to content

Commit

Permalink
Update gcp.py
Browse files Browse the repository at this point in the history
  • Loading branch information
loriab committed Aug 8, 2023
1 parent 4de6b0b commit 3479897
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion qcengine/programs/gcp.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,10 @@ def build_input(
# temp until actual options object
method = input_model.model.method.upper()
if method not in available_levels:
raise InputError(f"GCP does not have method: {method}")
if method in mctc_gcp_levels and executable == "gcp":
raise InputError(f"GCP does not have method {method} but MCTC-GCP does.")
else:
raise InputError(f"GCP does not have method: {method}")

# Need 'real' field later and that's only guaranteed for molrec
molrec = qcel.molparse.from_schema(input_model.molecule.dict())
Expand Down

0 comments on commit 3479897

Please sign in to comment.