]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
RNV: MEDCouplingBasicsTest5 corrections. rnv/MEDCouplingBasicsTest5 V8_3_0rc2 V8_3_0rc3
authormnt <mnt@opencascade.com>
Tue, 11 Apr 2017 06:52:09 +0000 (09:52 +0300)
committermnt <mnt@opencascade.com>
Tue, 11 Apr 2017 06:52:09 +0000 (09:52 +0300)
src/MEDCoupling_Swig/MEDCouplingBasicsTest5.py

index be4913aec85ab277d2821a95ffa2b7347e372bca..9c1ae7c6b10f38adc8eafd739b10484386501b43 100644 (file)
@@ -4472,12 +4472,12 @@ class MEDCouplingBasicsTest5(unittest.TestCase):
         arr=DataArrayDouble(8) ; arr.iota() ; f.setArray(arr)
         f.checkConsistencyLight()
         #
-        vol=f.getMesh().getMeasureField(ON_CELLS).getIJ(0,0)
+        vol=f.getMesh().getMeasureField(False).getIJ(0,0)
         f2=f.voronoize(1e-12)
         f2.checkConsistencyLight()
         self.assertEqual(f2.getNumberOfTuples(),8)
         volRef=vol/8
-        self.assertTrue(f2.getMesh().getMeasureField(ON_CELLS).getArray().isUniform(volRef,1e-12))
+        self.assertTrue(f2.getMesh().getMeasureField(False).getArray().isUniform(volRef,1e-12))
         pass
 
     def testVoronoi3D_6(self):
@@ -4492,8 +4492,8 @@ class MEDCouplingBasicsTest5(unittest.TestCase):
         f2=f.voronoize(1e-12)
         f2.checkConsistencyLight()
         self.assertEqual(f2.getNumberOfTuples(),4)
-        arr=f2.getMesh().getMeasureField(ON_CELLS).getArray()
-        self.assertTrue(f2.getMesh().getMeasureField(ON_CELLS).getArray().isEqual(DataArrayDouble([378.0546928833331, 318.42621348333586, 318.4262134833361, 318.4262134833278]),1e-6))
+        arr=f2.getMesh().getMeasureField(False).getArray()
+        self.assertTrue(f2.getMesh().getMeasureField(False).getArray().isEqual(DataArrayDouble([378.0546928833331, 318.42621348333586, 318.4262134833361, 318.4262134833278]),1e-6))
         pass
 
     def testVoronoi3D_7(self):
@@ -4513,7 +4513,7 @@ class MEDCouplingBasicsTest5(unittest.TestCase):
         ref=DataArrayDouble(27) ; ref[::2]=a ; ref[1::2]=b
         ref[[4,10,12,14,16,22]]=c ; ref[13]=d  # 6 cells 4,10,12,14,16,22 are the 6 cells boarding the most inner cell 13
         #
-        self.assertTrue(f2.getMesh().getMeasureField(ON_CELLS).getArray().isEqual(ref,1e-7))
+        self.assertTrue(f2.getMesh().getMeasureField(False).getArray().isEqual(ref,1e-7))
         pass
 
     def testConvertQuadToLin4Gauss_1(self):