]> SALOME platform Git repositories - tools/sat_salome.git/commitdiff
Salome HOME
add mpi4py patch for petsc 3.19.4
authorGuytri KASTANE <guytri.kastane@cea.fr>
Wed, 13 Sep 2023 08:28:13 +0000 (10:28 +0200)
committerGuytri KASTANE <guytri.kastane@cea.fr>
Wed, 13 Sep 2023 08:28:13 +0000 (10:28 +0200)
products/patches/petsc-3.19.4-mpi4py.patch [new file with mode: 0644]

diff --git a/products/patches/petsc-3.19.4-mpi4py.patch b/products/patches/petsc-3.19.4-mpi4py.patch
new file mode 100644 (file)
index 0000000..a4aecaa
--- /dev/null
@@ -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)