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