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 'COPTFLAGS=-g -O', 9 'FOPTFLAGS=-g -O', 10 'CXXOPTFLAGS=-g -O', 11 '--with-64-bit-indices=1', 12 '--download-mpich=1', #openmpi gives errors of type: Error: There is no specific subroutine for the generic 'mpi_send' 13 '--download-metis=1', 14 '--download-parmetis=1', 15 '--download-hwloc=1', 16 '--download-pastix=1', 17 '--download-ptscotch=1', 18 '--download-hypre=1', 19 '--download-hypre-configure-arguments=--enable-bigint=no --enable-mixedint=yes', # HYPRE with mixed integers 20 '--download-superlu_dist=1', 21 '--download-mumps=1', 22 '--download-scalapack=1', 23 '--donwload-suitesparse=1', 24 '--download-p4est=1', 25 '--download-revolve=1', 26 '--with-zlib=1', 27 '--with-blaslapack-dir='+os.environ['MKLROOT'], 28 '--download-slepc=1', 29 '--download-hpddm=1', 30 '--download-triangle=1', 31 '--download-mmg=1', 32 '--with-tau-perfstubs=0', 33 '--with-strict-petscerrorcode', 34 ] 35 36if __name__ == '__main__': 37 import sys,os 38 sys.path.insert(0,os.path.abspath('config')) 39 import configure 40 configure.petsc_configure(configure_options) 41