1#!/usr/bin/env python3 2 3import os 4petsc_hash_pkgs=os.path.join(os.getenv('HOME'),'petsc-hash-pkgs') 5 6if __name__ == '__main__': 7 import sys 8 import os 9 sys.path.insert(0, os.path.abspath('config')) 10 import configure 11 configure_options = [ 12 '--package-prefix-hash='+petsc_hash_pkgs, 13 '--with-make-test-np=20', 14 '--with-mpi=0', 15 '--with-cc=gcc', 16 '--with-cxx=g++', 17 '--with-fc=gfortran', 18 '--with-cuda=1', 19 '--download-hdf5', 20 '--download-metis', 21 '--download-superlu', 22 '--download-mumps', 23 '--download-p4est=1', 24 '--with-zlib=1', 25 # stress-test h2opus: mpiuni and CPU code while PETSc has GPU support 26 '--download-h2opus', 27 '--with-cxx-dialect=14', 28 '--with-shared-libraries=1', 29 '--download-slepc', 30 '--download-hpddm', 31 '--download-fftw', 32 '--with-strict-petscerrorcode', 33 '--with-coverage', 34 ] 35 configure.petsc_configure(configure_options) 36