From e9fec085be49e4c67b6d0014799de931ddfba913 Mon Sep 17 00:00:00 2001 From: Guytri KASTANE Date: Wed, 13 Sep 2023 10:28:13 +0200 Subject: [PATCH] add mpi4py patch for petsc 3.19.4 --- products/patches/petsc-3.19.4-mpi4py.patch | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 products/patches/petsc-3.19.4-mpi4py.patch diff --git a/products/patches/petsc-3.19.4-mpi4py.patch b/products/patches/petsc-3.19.4-mpi4py.patch new file mode 100644 index 0000000..a4aecaa --- /dev/null +++ b/products/patches/petsc-3.19.4-mpi4py.patch @@ -0,0 +1,21 @@ +diff -Naur petsc_ref/config/BuildSystem/config/packages/mpi4py.py petsc/config/BuildSystem/config/packages/mpi4py.py +--- petsc_ref/config/BuildSystem/config/packages/mpi4py.py 2021-11-18 23:17:43.058783475 +0100 ++++ petsc/config/BuildSystem/config/packages/mpi4py.py 2021-11-18 23:58:42.759826515 +0100 +@@ -22,7 +22,7 @@ + return + + def Install(self): +- installLibPath = os.path.join(self.installDir, 'lib') ++ installLibPath = os.path.join(self.installDir) + if self.setCompilers.isDarwin(self.log): + apple = 'You may need to\n (csh/tcsh) setenv MACOSX_DEPLOYMENT_TARGET 10.X\n (sh/bash) MACOSX_DEPLOYMENT_TARGET=10.X; export MACOSX_DEPLOYMENT_TARGET\nbefore running make on PETSc' + else: +@@ -73,7 +73,7 @@ + raise RuntimeError('mpi4py unreconginzed mode of building mpi4py! Suggest using --download-mpi4py!') + + if self.directory: +- installLibPath = os.path.join(self.directory, 'lib') ++ installLibPath = os.path.join(self.directory) + if not os.path.isfile(os.path.join(installLibPath,'mpi4py','__init__.py')): + raise RuntimeError('mpi4py not found at %s' % installLibPath) + self.addMakeMacro('PETSC_MPI4PY_PYTHONPATH',installLibPath) -- 2.39.2