1#!/usr/bin/env python 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=clang', 9 '--with-fc=gfortran', 10 '--with-cxx=clang++', 11 12 'COPTFLAGS=-g -O', 13 'FOPTFLAGS=-g -O', 14 'CXXOPTFLAGS=-g -O', 15 16 '--with-clanguage=cxx', 17 'CXXFLAGS=-Wall -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas -fstack-protector -fvisibility=hidden -Wno-deprecated', 18 '--with-scalar-type=complex', 19 '--with-64-bit-indices=1', 20 21 '--with-log=0', 22 '--with-info=0', 23 24 '--download-hypre=1', 25 '--download-mpich=1', 26 '--download-cmake=1', 27 '--download-make=1', 28 '--download-metis=1', 29 '--download-parmetis=1', 30 '--download-pastix=1', 31 '--download-hwloc', 32 '--download-ptscotch=1', 33 '--download-superlu_dist=1', 34 '--download-elemental=1', 35 '--download-p4est=1', 36 '--with-zlib=1', 37 ] 38 39if __name__ == '__main__': 40 import sys,os 41 sys.path.insert(0,os.path.abspath('config')) 42 import configure 43 configure.petsc_configure(configure_options) 44