Subversion Repositories slepc-dev

Rev

Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1651 Rev 1659
Line 126... Line 126...
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')
os.chdir(slepcdir)
if os.getcwd() != slepcdir:
 
  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']
if not os.path.exists(petscdir):
if not os.path.exists(petscdir):
  sys.exit('ERROR: PETSC_DIR enviroment variable is not valid')
  sys.exit('ERROR: PETSC_DIR enviroment variable is not valid')