Skip to content

Commit

Permalink
Raise error in spec if MpiPartition is None
Browse files Browse the repository at this point in the history
  • Loading branch information
mbkumar committed Dec 23, 2021
1 parent 8843658 commit 0b6af94
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/simsopt/mhd/spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ def __init__(self,
verbose: bool = True,
keep_all_files: bool = False):

if MpiPartition is None:
raise RuntimeError(
"Using Spec requires working MPI.")
if spec is None:
raise RuntimeError(
"Using Spec requires spec python wrapper to be installed.")
Expand Down

0 comments on commit 0b6af94

Please sign in to comment.