1#!/usr/bin/env python 2 3import os 4petsc_hash_pkgs=os.path.join(os.getenv('HOME'),'petsc-hash-pkgs') 5if not os.path.isdir(petsc_hash_pkgs): os.mkdir(petsc_hash_pkgs) 6 7configure_options = [ 8 '--package-prefix-hash='+petsc_hash_pkgs, 9 '--with-cc=clang', 10 '--with-fc=gfortran', 11 '--with-cxx=clang++', 12 13 # hack for analyzer 14 'CFLAGS=-fPIC', 15 'CXXFLAGS=-fPIC', 16 'FLAGS=-fPIC', 17 18 'COPTFLAGS=-g -O', 19 'FOPTFLAGS=-g -O', 20 'CXXOPTFLAGS=-g -O', 21 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-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