From: Guytri KASTANE Date: Wed, 13 Sep 2023 08:28:13 +0000 (+0200) Subject: add mpi4py patch for petsc 3.19.4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e9fec085be49e4c67b6d0014799de931ddfba913;p=tools%2Fsat_salome.git add mpi4py patch for petsc 3.19.4 --- 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)