| Line 137... |
Line 137... |
if 'SLEPC_DIR' not in os.environ:
|
if 'SLEPC_DIR' not in os.environ:
|
sys.exit('ERROR: SLEPC_DIR enviroment variable is not set')
|
sys.exit('ERROR: SLEPC_DIR enviroment variable is not set')
|
slepcdir = os.environ['SLEPC_DIR']
|
slepcdir = os.environ['SLEPC_DIR']
|
if not os.path.exists(slepcdir) or not os.path.exists(os.sep.join([slepcdir,'config'])):
|
if not os.path.exists(slepcdir) or not os.path.exists(os.sep.join([slepcdir,'config'])):
|
sys.exit('ERROR: SLEPC_DIR enviroment variable is not valid')
|
sys.exit('ERROR: SLEPC_DIR enviroment variable is not valid')
|
if os.getcwd() != slepcdir:
|
if os.path.realpath(os.getcwd()) != os.path.realpath(slepcdir):
|
sys.exit('ERROR: SLEPC_DIR is not the current directory')
|
sys.exit('ERROR: SLEPC_DIR is not the current directory')
|
|
|
if 'PETSC_DIR' not in os.environ:
|
if 'PETSC_DIR' not in os.environ:
|
sys.exit('ERROR: PETSC_DIR enviroment variable is not set')
|
sys.exit('ERROR: PETSC_DIR enviroment variable is not set')
|
petscdir = os.environ['PETSC_DIR']
|
petscdir = os.environ['PETSC_DIR']
|