1#!/usr/bin/python 2 3import os 4petsc_hash_pkgs=os.path.join(os.getenv('HOME'),'petsc-hash-pkgs') 5if not os.path.isdir(petsc_hash_pkgs): os.mkdir(petsc_hash_pkgs) 6 7if __name__ == '__main__': 8 import sys 9 import os 10 sys.path.insert(0, os.path.abspath('config')) 11 import configure 12 configure_options = [ 13 '--package-prefix-hash='+petsc_hash_pkgs, 14 '--with-debugging=0', 15 '--with-blaslapack-lib=-L/cygdrive/c/PROGRA~2/INTELS~1/COMPIL~2/windows/mkl/lib/intel64 mkl_intel_lp64_dll.lib mkl_sequential_dll.lib mkl_core_dll.lib', 16 '--with-cc=win32fe cl', 17 '--with-cxx=win32fe cl', 18 '--with-fc=win32fe ifort', 19 '--with-mpi-include=/cygdrive/c/PROGRA~2/INTELS~1/mpi/20172~1.187/intel64/include', 20 '--with-mpi-lib=/cygdrive/c/PROGRA~2/INTELS~1/mpi/20172~1.187/intel64/lib/impi.lib', 21 '--with-mpiexec=/cygdrive/c/PROGRA~2/INTELS~1/mpi/20172~1.187/intel64/bin/mpiexec -localonly', 22 '--with-shared-libraries=0', 23 'DATAFILESPATH=c:/cygwin64/home/petsc/datafiles', 24 ] 25 configure.petsc_configure(configure_options) 26