1#!/usr/bin/env python3 2 3import os 4petsc_hash_pkgs=os.path.join(os.getenv('HOME'),'petsc-hash-pkgs') 5petsc_datafiles='/nfs/gce/projects/petsc/datafiles' 6 7configure_options = [ 8 '--package-prefix-hash='+petsc_hash_pkgs, 9 'DATAFILESPATH='+petsc_datafiles, 10 '--with-cc=gcc -m32', 11 '--with-cxx=g++ -m32', 12 '--with-fc=gfortran -m32', 13 14 '--with-64-bit-indices=1', 15 '--with-log=0', 16 '--with-info=0', 17 '--with-ctable=0', 18 '--with-is-color-value-type=short', 19 '--with-single-library=0', 20 '--with-strict-petscerrorcode', 21 22 '--with-c2html=0', 23 '--with-x=0', 24 '--download-mpich', 25 '--download-fblaslapack', 26 ] 27 28if __name__ == '__main__': 29 import sys,os 30 sys.path.insert(0,os.path.abspath('config')) 31 import configure 32 configure.petsc_configure(configure_options) 33