1f26daa2dSSatish Balay#!/usr/bin/env python 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', 12*adca0f4fSSatish 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', 15f26daa2dSSatish Balay '--download-pastix=1', 16f26daa2dSSatish Balay '--download-ptscotch=1', 17f26daa2dSSatish Balay '--download-hypre=1', 18f26daa2dSSatish Balay '--download-hypre-configure-arguments=--enable-bigint=no --enable-mixedint=yes', # HYPRE with mixed integers 19f26daa2dSSatish Balay '--download-superlu_dist=1', 20f26daa2dSSatish Balay '--donwload-suitesparse=1', 21f26daa2dSSatish Balay '--download-p4est=1', 22f26daa2dSSatish Balay '--with-zlib=1', 23f26daa2dSSatish Balay ] 24f26daa2dSSatish Balay 25f26daa2dSSatish Balayif __name__ == '__main__': 26f26daa2dSSatish Balay import sys,os 27f26daa2dSSatish Balay sys.path.insert(0,os.path.abspath('config')) 28f26daa2dSSatish Balay import configure 29f26daa2dSSatish Balay configure.petsc_configure(configure_options) 30