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', 26*54606e8bSsdargavi '--download-pflare=1', 27f26daa2dSSatish Balay '--with-zlib=1', 2885f1dce8SJed Brown '--download-libceed', 29c4ad6305SSatish Balay '--with-blaslapack-dir='+os.environ['MKLROOT'], 30c4ad6305SSatish Balay '--download-slepc=1', 31c4ad6305SSatish Balay '--download-hpddm=1', 32711aed9cSPierre Jolivet '--download-triangle=1', 336de2a5eaSChris Kees '--download-triangle-build-exec=1', 34711aed9cSPierre Jolivet '--download-mmg=1', 35a0c7f9aaSSamuel Khuvis '--with-tau-perfstubs=0', 36689a5dfaSJacob Faibussowitsch '--with-strict-petscerrorcode', 3741baa1e4SJacob Faibussowitsch '--with-coverage', 38f26daa2dSSatish Balay ] 39f26daa2dSSatish Balay 40f26daa2dSSatish Balayif __name__ == '__main__': 41f26daa2dSSatish Balay import sys,os 42f26daa2dSSatish Balay sys.path.insert(0,os.path.abspath('config')) 43f26daa2dSSatish Balay import configure 44f26daa2dSSatish Balay configure.petsc_configure(configure_options) 45