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-cc=gcc', 9 '--with-fc=gfortran', 10 '--with-cxx=g++', 11 12 'COPTFLAGS=-g -O0', 13 'FOPTFLAGS=-g -O0', 14 'CXXOPTFLAGS=-g -O0', 15 16 '--with-clanguage=cxx', 17 '--with-scalar-type=complex', 18 '--with-64-bit-indices=1', 19 20 '--download-blis=1', 21 '--download-f2cblaslapack=1', 22 '--download-hypre=1', 23 '--download-mpich=1', 24 '--download-cmake=1', 25 '--download-make=1', 26 '--download-metis=1', 27 '--download-parmetis=1', 28 '--download-pastix=1', 29 '--download-hwloc', 30 '--download-ptscotch=1', 31 '--download-superlu_dist=1', 32 '--download-elemental=1', 33 '--download-p4est=1', 34 '--download-ptscotch', 35 '--download-scalapack', 36 '--download-strumpack', 37 '--with-zlib=1', 38 '--with-coverage=1', 39 '--with-strict-petscerrorcode', 40 ] 41 42if __name__ == '__main__': 43 import sys,os 44 sys.path.insert(0,os.path.abspath('config')) 45 import configure 46 configure.petsc_configure(configure_options) 47