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