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