]> SALOME platform Git repositories - tools/sat_salome.git/commitdiff
Salome HOME
spns #42158: Fix MEDCOUPLING V7_8_BR compilation on CO9 - set number of processors...
authorNabil Ghodbane <nabil.ghodbane@cea.fr>
Fri, 21 Jun 2024 07:45:03 +0000 (09:45 +0200)
committerNabil Ghodbane <nabil.ghodbane@cea.fr>
Fri, 21 Jun 2024 07:45:03 +0000 (09:45 +0200)
products/MEDCOUPLING.pyconf
products/patches/MEDCOUPLING-V7_8_BR-findXdr-CO9.patch

index c700e97911db2e3ffd3b5b13d71a8a63c4db1815..a4f9014324f55402c54843639aefff723fc9f010 100644 (file)
@@ -617,9 +617,8 @@ version_V7_8_0_CO9 :
               "setuptools",
               "numpy",
               "scipy",
-              "lapack",
-             "CONFIGURATION"
+              "lapack"
               ]
-
-  patches: ['MEDCOUPLING-V7_8_BR-findXdr-CO9.patch']
+    nb_proc: 1
+    patches: ['MEDCOUPLING-V7_8_BR-findXdr-CO9.patch']
 }
index 92c8d7de2cb89561a296cd05e14a01f886544861..4ff6fe35cb50e952601310c20a77b114c0d4530e 100644 (file)
@@ -43,7 +43,7 @@ index e8e86253..6e24b6fe 100644
 -INCLUDE(FindPackageHandleStandardArgs)
 -FIND_PACKAGE_HANDLE_STANDARD_ARGS(XDR REQUIRED_VARS XDR_INCLUDE_DIRS)
 diff --git a/src/MEDCoupling_Swig/MEDCouplingMemArray.i b/src/MEDCoupling_Swig/MEDCouplingMemArray.i
-index f2303876..1fa0d980 100644
+index f2303876..15c5d36e 100644
 --- a/src/MEDCoupling_Swig/MEDCouplingMemArray.i
 +++ b/src/MEDCoupling_Swig/MEDCouplingMemArray.i
 @@ -2933,7 +2933,7 @@ namespace ParaMEDMEM
@@ -51,7 +51,7 @@ index f2303876..1fa0d980 100644
                    {
                      int nbOfTuples1=PyInt_AS_LONG(nbOfTuples);
 -                    if(nbOfTuples<0)
-+                    if( (int) PyInt_AsLong(nbOfTuples) < 0)
++                    if( nbOfTuples1 < 0)
                        throw INTERP_KERNEL::Exception("DataArrayInt::setValue : should be a positive set of allocated memory !");
                      if(nbOfComp)
                        {