1517f4e34SMatthew G. Knepley#!/usr/bin/env python3 2517f4e34SMatthew G. Knepley 3517f4e34SMatthew G. Knepleyimport os 4517f4e34SMatthew G. Knepleypetsc_hash_pkgs=os.path.join(os.getenv('HOME'),'petsc-hash-pkgs') 5517f4e34SMatthew G. Knepley 6517f4e34SMatthew G. Knepleyconfigure_options = [ 7517f4e34SMatthew G. Knepley '--package-prefix-hash='+petsc_hash_pkgs, 8517f4e34SMatthew G. Knepley '--with-debugging=0', 9517f4e34SMatthew G. Knepley '--with-fortran-kernels=1', 10517f4e34SMatthew G. Knepley '--prefix=petsc-install', 11517f4e34SMatthew G. Knepley '--with-serialize-functions=1', 12517f4e34SMatthew G. Knepley '--download-mpich=1', 13517f4e34SMatthew G. Knepley '--download-mpich-device=ch3:sock', 14517f4e34SMatthew G. Knepley '--download-mpich-configure-arguments=--enable-error-messages=all --enable-g', # note --enable-g=memit - used by --with-debugging=1 does not help 15517f4e34SMatthew G. Knepley '--download-openblas=1', 16789e7222SSatish Balay #'--download-openblas-make-options=TARGET=GENERIC', 17517f4e34SMatthew G. Knepley '--download-hypre=1', 18517f4e34SMatthew G. Knepley '--download-cmake=1', 19517f4e34SMatthew G. Knepley '--download-metis=1', 20517f4e34SMatthew G. Knepley '--download-parmetis=1', 21517f4e34SMatthew G. Knepley '--download-ptscotch=1', 22517f4e34SMatthew G. Knepley '--download-suitesparse=1', 23517f4e34SMatthew G. Knepley '--download-triangle=1', 24*6de2a5eaSChris Kees '--download-triangle-build-exec=1', 25517f4e34SMatthew G. Knepley '--download-superlu=1', 26517f4e34SMatthew G. Knepley #'--download-superlu_dist=1', Release 7.2 has MPI leaks 27517f4e34SMatthew G. Knepley '--download-scalapack=1', 28517f4e34SMatthew G. Knepley '--download-elemental=1', 29517f4e34SMatthew G. Knepley #'--download-spai=1', has MPI leaks 30517f4e34SMatthew G. Knepley '--download-parms=1', 31517f4e34SMatthew G. Knepley '--download-libceed', 32517f4e34SMatthew G. Knepley '--download-chaco=1', 33517f4e34SMatthew G. Knepley '--with-strict-petscerrorcode', 34517f4e34SMatthew G. Knepley '--with-coverage', 35517f4e34SMatthew G. Knepley ] 36517f4e34SMatthew G. Knepley 37517f4e34SMatthew G. Knepleyif __name__ == '__main__': 38517f4e34SMatthew G. Knepley import sys,os 39517f4e34SMatthew G. Knepley sys.path.insert(0,os.path.abspath('config')) 40517f4e34SMatthew G. Knepley import configure 41517f4e34SMatthew G. Knepley configure.petsc_configure(configure_options) 42