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 'COPTFLAGS=-g -O', 10 'FOPTFLAGS=-g -O', 11 'CXXOPTFLAGS=-g -O', 12 '--with-64-bit-indices=1', 13 '--download-openmpi=1', #download-mpich works - but system mpich gives wierd errors with superlu_dist+parmeits [with shared/64-bit-indices]? 14 '--download-metis=1', 15 '--download-parmetis=1', 16 '--download-pastix=1', 17 '--download-ptscotch=1', 18 '--download-hypre=1', 19 '--download-hypre-configure-arguments=--enable-bigint=no --enable-mixedint=yes', # HYPRE with mixed integers 20 '--download-superlu_dist=1', 21 '--donwload-suitesparse=1', 22 '--download-cmake', # superlu_dist requires a newer cmake 23 '--download-p4est=1', 24 '--with-zlib=1', 25 ] 26 27if __name__ == '__main__': 28 import sys,os 29 sys.path.insert(0,os.path.abspath('config')) 30 import configure 31 configure.petsc_configure(configure_options) 32