1#!/usr/bin/env python3 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-debugging=0', 9 '--with-fortran-kernels=1', 10 '--prefix=petsc-install', 11 '--with-serialize-functions=1', 12 '--download-mpich=1', 13 '--download-mpich-device=ch3:sock', 14 '--download-mpich-configure-arguments=--enable-error-messages=all --enable-g', # note --enable-g=memit - used by --with-debugging=1 does not help 15 '--download-openblas=1', 16 #'--download-openblas-make-options=TARGET=GENERIC', 17 '--download-hypre=1', 18 '--download-cmake=1', 19 '--download-metis=1', 20 '--download-parmetis=1', 21 '--download-ptscotch=1', 22 '--download-suitesparse=1', 23 '--download-triangle=1', 24 '--download-triangle-build-exec=1', 25 '--download-superlu=1', 26 #'--download-superlu_dist=1', Release 7.2 has MPI leaks 27 '--download-scalapack=1', 28 '--download-elemental=1', 29 #'--download-spai=1', has MPI leaks 30 '--download-parms=1', 31 '--download-libceed', 32 '--download-chaco=1', 33 '--with-strict-petscerrorcode', 34 '--with-coverage', 35 ] 36 37if __name__ == '__main__': 38 import sys,os 39 sys.path.insert(0,os.path.abspath('config')) 40 import configure 41 configure.petsc_configure(configure_options) 42