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 # hack for analyzer 13 'CFLAGS=-fPIC', 14 'CXXFLAGS=-fPIC', 15 'FLAGS=-fPIC', 16 17 'COPTFLAGS=-g -O', 18 'FOPTFLAGS=-g -O', 19 'CXXOPTFLAGS=-g -O', 20 21 '--download-mpich=1', 22 '--download-cmake=1', 23 '--download-make=1', 24 '--download-metis=1', 25 '--download-parmetis=1', 26 '--download-pastix=1', 27 '--download-hwloc=1', 28 '--download-ptscotch=1', 29 '--download-superlu_dist=1' 30 ] 31 32if __name__ == '__main__': 33 import sys,os 34 sys.path.insert(0,os.path.abspath('config')) 35 import configure 36 configure.petsc_configure(configure_options) 37