]> SALOME platform Git repositories - tools/sat_salome.git/commitdiff
Salome HOME
Fedora 38: petsc compilation
authorNabil Ghodbane <nabil.ghodbane@cea.fr>
Wed, 20 Dec 2023 11:36:33 +0000 (12:36 +0100)
committerNabil Ghodbane <nabil.ghodbane@cea.fr>
Wed, 20 Dec 2023 12:50:38 +0000 (13:50 +0100)
applications/SALOME-9.12.0-native.pyconf
applications/SALOME-master-native.pyconf
products/patches/petsc-3.16-fd38-makeflags.patch [new file with mode: 0644]
products/petsc.pyconf

index 2531def2cca43bad0224b802ec5e497ebcdade7c..79ca1267a38673d7bcd34f675668f26623401dc4 100644 (file)
@@ -349,6 +349,7 @@ __overwrite__ :
         'APPLICATION.products.nlopt'            : '2.6.0'
         'APPLICATION.products.netcdf'           : '4.6.2'
         'APPLICATION.products.swig'             : '4.0.2'
+        'APPLICATION.products.petsc'            : {tag: '3.16.0',    base: 'no', section: 'version_3_16_0_FD38'                 }
         'APPLICATION.products.PyFMI'            : {tag: '2.6',       base: 'no', section: 'version_2_6_FD38'                    }
         'APPLICATION.products.medfile'          : {tag: '4.1.1',     base: 'no', section: 'version_4_1_1_FD38'                  }
         'APPLICATION.products.catalyst'         : {tag: '2.0',       base: 'no', section: 'version_2_0_FD38'                    }
index b1717f55c5eea4c9b76073802c64d98e6a5b6f47..56d25115068b150e0a4ec324d2903e5abef4d4dc 100644 (file)
@@ -349,6 +349,7 @@ __overwrite__ :
         'APPLICATION.products.nlopt'            : '2.6.0'
         'APPLICATION.products.netcdf'           : '4.6.2'
         'APPLICATION.products.swig'             : '4.0.2'
+        'APPLICATION.products.petsc'            : {tag: '3.16.0',    base: 'no', section: 'version_3_16_0_FD38'                 }
         'APPLICATION.products.PyFMI'            : {tag: '2.6',       base: 'no', section: 'version_2_6_FD38'                    }
         'APPLICATION.products.medfile'          : {tag: '4.1.1',     base: 'no', section: 'version_4_1_1_FD38'                  }
         'APPLICATION.products.catalyst'         : {tag: '2.0',       base: 'no', section: 'version_2_0_FD38'                    }
diff --git a/products/patches/petsc-3.16-fd38-makeflags.patch b/products/patches/petsc-3.16-fd38-makeflags.patch
new file mode 100644 (file)
index 0000000..9b6492f
--- /dev/null
@@ -0,0 +1,32 @@
+--- petsc-3.16.0-ref/makefile  2021-09-30 04:15:07.000000000 +0200
++++ petsc-3.16.0-dev/makefile  2023-12-20 12:02:30.248623882 +0100
+@@ -50,7 +50,7 @@
+       @echo "Finishing make run at `date +'%a, %d %b %Y %H:%M:%S %z'`" >> ${PETSC_ARCH}/lib/petsc/conf/make.log
+       @if test -s ${PETSC_ARCH}/lib/petsc/conf/error.log; then exit 1; fi
+-all-local: info libs matlabbin petsc4py-build libmesh-build mfem-build slepc-build hpddm-build amrex-build bamg-build
++all-local: info print_before_fix fix_makeflags print_after_fix libs matlabbin petsc4py-build libmesh-build mfem-build slepc-build hpddm-build amrex-build bamg-build
+ #
+ # Prints information about the system and version of PETSc being compiled
+@@ -130,6 +130,20 @@
+       -@echo "=========================================="
+ #
++#
++#
++fix_makeflags:
++      -@echo "Remove w option from MAKEFLAGS"
++      $(eval MAKEFLAGS:=$(filter-out w,$(MAKEFLAGS)))
++
++print_before_fix:
++      -@echo "Value of MAKEFLAGS (before):"
++      -@echo $(MAKEFLAGS)
++
++print_after_fix:
++      -@echo "Value of MAKEFLAGS (after):"
++      -@echo $(MAKEFLAGS)
++#
+ # Build MatLab binaries
+ #
+ matlabbin:
index d7da29165a618c31a088ca52f86c93f6a2ce82dd..3bad8c3f7ef2e5c103b773f949ebf3f4183a164c 100644 (file)
@@ -35,6 +35,13 @@ version_3_16_0 :
     patches: ['petsc-3.16-mpi4py.patch']
 }
 
+version_3_16_0_FD38 :
+{
+    compil_script :  "petsc-3.16.0.sh"
+    depend : ["hdf5", "Python"]
+    patches: ['petsc-3.16-mpi4py.patch', 'petsc-3.16-fd38-makeflags.patch']
+}
+
 version_3_15_0 :
 {
     compil_script :  "petsc-3.15.0.sh"