Skip to content

Commit

Permalink
Remove ValueError
Browse files Browse the repository at this point in the history
  • Loading branch information
ZoeLeibowitz committed Jul 18, 2024
1 parent 7648db5 commit fa3c91d
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions devito/petsc/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,7 @@ def get_petsc_dir():
petsc_dir = os.environ.get(i)
if petsc_dir:
return petsc_dir
raise ValueError(
'Environment variable PETSC_DIR is not set. '
'Set it to the PETSc directory.'
)
return None


@memoized_func
Expand All @@ -37,10 +34,7 @@ def get_petsc_arch():
petsc_arch = os.environ.get(i)
if petsc_arch:
return petsc_arch
raise ValueError(
'Environment variable PETSC_ARCH is not set. '
'Set it to the configuration of PETSc you wish to use.'
)
return None


def core_metadata():
Expand Down

0 comments on commit fa3c91d

Please sign in to comment.