1df3bd252SSatish 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', 238e57ee34SPierre Jolivet '--download-suitesparse=1', 24f26daa2dSSatish Balay '--download-p4est=1', 25e43ad619SHong Zhang '--download-revolve=1', 26f26daa2dSSatish Balay '--with-zlib=1', 2785f1dce8SJed Brown '--download-libceed', 28c4ad6305SSatish Balay '--with-blaslapack-dir='+os.environ['MKLROOT'], 29c4ad6305SSatish Balay '--download-slepc=1', 30c4ad6305SSatish Balay '--download-hpddm=1', 31711aed9cSPierre Jolivet '--download-triangle=1', 32*6de2a5eaSChris Kees '--download-triangle-build-exec=1', 33711aed9cSPierre Jolivet '--download-mmg=1', 34a0c7f9aaSSamuel Khuvis '--with-tau-perfstubs=0', 35689a5dfaSJacob Faibussowitsch '--with-strict-petscerrorcode', 3641baa1e4SJacob Faibussowitsch '--with-coverage', 37f26daa2dSSatish Balay ] 38f26daa2dSSatish Balay 39f26daa2dSSatish Balayif __name__ == '__main__': 40f26daa2dSSatish Balay import sys,os 41f26daa2dSSatish Balay sys.path.insert(0,os.path.abspath('config')) 42f26daa2dSSatish Balay import configure 43f26daa2dSSatish Balay configure.petsc_configure(configure_options) 44