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 '--download-hypre=1', 22 '--download-mpich=1', 23 '--download-cmake=1', 24 '--download-make=1', 25 '--download-metis=1', 26 '--download-parmetis=1', 27 '--download-pastix=1', 28 '--download-hwloc', 29 '--download-ptscotch=1', 30 '--download-superlu_dist=1', 31 '--download-elemental=1', 32 '--download-p4est=1', 33 '--with-zlib=1', 34 ] 35 36if __name__ == '__main__': 37 import sys,os 38 sys.path.insert(0,os.path.abspath('config')) 39 import configure 40 configure.petsc_configure(configure_options) 41