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 '--useThreads=0', # for some reason cmake hangs when invoked from configure on bsd? 9 10 'COPTFLAGS=-g -O', 11 'FOPTFLAGS=-g -O', 12 'CXXOPTFLAGS=-g -O', 13 14 '--with-clanguage=cxx', 15 '--with-scalar-type=complex', 16 17 #'-download-fblaslapack=1', 18 '--with-mpi-dir=/home/svcpetsc/soft/mpich-4.2.2', 19 '--download-metis=1', 20 '--download-parmetis=1', 21 '--download-triangle=1', 22 '--download-triangle-build-exec=1', 23 #'--download-superlu=1', 24 #'--download-superlu_dist=1', 25 '--download-scalapack=1', 26 '--download-mumps=1', 27 '--download-hdf5', 28 '--with-zlib=1', 29 # '--download-elemental=1', # disabled since its maxCxxVersion is c++14, but Kokkos-4.0's minCxxVersion is c++17 30 #'--download-sundials2=1', 31 #'--download-hypre=1', 32 #'--download-suitesparse=1', 33 #'--download-chaco=1', 34 #'--download-spai=1', 35 '--download-p4est=1', 36 '--with-mpi-ftn-module=mpi_f08', 37 '--download-kokkos=1', 38 '--download-kokkos-kernels=1', 39 '--with-ssl=1', 40 '--with-strict-petscerrorcode=0', 41 ] 42 43if __name__ == '__main__': 44 import sys,os 45 sys.path.insert(0,os.path.abspath('config')) 46 import configure 47 configure.petsc_configure(configure_options) 48