#!/usr/bin/env python3 import os petsc_hash_pkgs=os.path.join(os.getenv('HOME'),'petsc-hash-pkgs') oadirf='"/cygdrive/c/Program Files (x86)/Intel/oneAPI"' oadir=os.popen('cygpath -u '+os.popen('cygpath -ms '+oadirf).read()).read().strip() oamkldir=oadir+'/mkl/latest/lib' oampidir=oadir+'/mpi/latest' if __name__ == '__main__': import sys import os sys.path.insert(0, os.path.abspath('config')) import configure configure_options = [ '--package-prefix-hash='+petsc_hash_pkgs, '--with-debugging=0', '--with-blaslapack-lib=-L'+oamkldir+' mkl_intel_lp64_dll.lib mkl_sequential_dll.lib mkl_core_dll.lib', '--with-cc=cl', '--with-cxx=cl', '--with-fc=ifx', '--with-shared-libraries=0', '--with-mpi-include='+oampidir+'/include', '--with-mpi-lib='+oampidir+'/lib/impi.lib', '--with-mpiexec='+oampidir+'/bin/mpiexec -localonly', '--download-metis', '--download-parmetis', '--with-strict-petscerrorcode=0', ] configure.petsc_configure(configure_options)