1#!/usr/bin/python 2 3import os 4petsc_hash_pkgs=os.path.join(os.getenv('HOME'),'petsc-hash-pkgs') 5 6if __name__ == '__main__': 7 import sys 8 import os 9 sys.path.insert(0, os.path.abspath('config')) 10 import configure 11 configure_options = [ 12 '--package-prefix-hash='+petsc_hash_pkgs, 13 '--with-mpi=0', 14 '--with-cc=gcc', 15 '--with-cxx=g++', 16 '--with-fc=gfortran', 17 '--with-cuda=1', 18 '--download-hdf5', 19 '--download-metis', 20 '--download-superlu', 21 '--download-mumps', 22 '--with-mumps-serial', 23 '--with-shared-libraries=1', 24 ] 25 configure.petsc_configure(configure_options) 26 27