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 '--with-petsc4py=1', 21 '--download-mpi4py', 22 '--download-blis=1', 23 '--download-f2cblaslapack=1', 24 '--download-hypre=1', 25 '--download-mpich=1', 26 '--download-cmake=1', 27 '--download-make=1', 28 '--download-metis=1', 29 '--download-parmetis=1', 30 '--download-hwloc', 31 '--download-ptscotch=1', 32 '--download-superlu_dist=1', 33 '--download-elemental=1', 34 '--download-p4est=1', 35 '--download-ptscotch', 36 '--download-scalapack', 37 '--download-strumpack', 38 '--with-zlib=1', 39 '--with-coverage=1', 40 '--with-strict-petscerrorcode', 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