1*df3bd252SSatish Balay#!/usr/bin/env python3 2f26daa2dSSatish Balay 3f26daa2dSSatish Balayimport os 4f26daa2dSSatish Balaypetsc_hash_pkgs=os.path.join(os.getenv('HOME'),'petsc-hash-pkgs') 5f26daa2dSSatish Balay 6f26daa2dSSatish Balayconfigure_options = [ 7f26daa2dSSatish Balay '--package-prefix-hash='+petsc_hash_pkgs, 8f26daa2dSSatish Balay 'COPTFLAGS=-g -O', 9f26daa2dSSatish Balay 'FOPTFLAGS=-g -O', 10f26daa2dSSatish Balay 'CXXOPTFLAGS=-g -O', 11f26daa2dSSatish Balay '--with-64-bit-indices=1', 12adca0f4fSSatish Balay '--download-mpich=1', #openmpi gives errors of type: Error: There is no specific subroutine for the generic 'mpi_send' 13f26daa2dSSatish Balay '--download-metis=1', 14f26daa2dSSatish Balay '--download-parmetis=1', 150ba198fcSBarry Smith '--download-hwloc=1', 16f26daa2dSSatish Balay '--download-pastix=1', 17f26daa2dSSatish Balay '--download-ptscotch=1', 18f26daa2dSSatish Balay '--download-hypre=1', 19f26daa2dSSatish Balay '--download-hypre-configure-arguments=--enable-bigint=no --enable-mixedint=yes', # HYPRE with mixed integers 20f26daa2dSSatish Balay '--download-superlu_dist=1', 21a6053eceSJunchao Zhang '--download-mumps=1', 22a6053eceSJunchao Zhang '--download-scalapack=1', 23f26daa2dSSatish Balay '--donwload-suitesparse=1', 24f26daa2dSSatish Balay '--download-p4est=1', 25e43ad619SHong Zhang '--download-revolve=1', 26f26daa2dSSatish Balay '--with-zlib=1', 27c4ad6305SSatish Balay '--with-blaslapack-dir='+os.environ['MKLROOT'], 28c4ad6305SSatish Balay '--download-slepc=1', 29c4ad6305SSatish Balay '--download-hpddm=1', 30f26daa2dSSatish Balay ] 31f26daa2dSSatish Balay 32f26daa2dSSatish Balayif __name__ == '__main__': 33f26daa2dSSatish Balay import sys,os 34f26daa2dSSatish Balay sys.path.insert(0,os.path.abspath('config')) 35f26daa2dSSatish Balay import configure 36f26daa2dSSatish Balay configure.petsc_configure(configure_options) 37