]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
Non regression test to highlight the debuging on polygon reading.
authorageay <ageay>
Mon, 22 Aug 2011 07:36:14 +0000 (07:36 +0000)
committerageay <ageay>
Mon, 22 Aug 2011 07:36:14 +0000 (07:36 +0000)
src/MEDLoader/Swig/MEDLoaderTest3.py

index 1cb70ef9cea01e5400504c25530e30c4a9062641..f890343552e8d58cf98e658c91d4611a71ae9365 100644 (file)
@@ -91,8 +91,8 @@ class MEDLoaderTest(unittest.TestCase):
         m.insertNextCell(NORM_TRI3,3,targetConn[4:7])
         m.insertNextCell(NORM_TRI3,3,targetConn[7:10])
         m.insertNextCell(NORM_QUAD4,4,targetConn[0:4])
-        m.insertNextCell(NORM_QUAD4,4,targetConn[10:14])
-        m.insertNextCell(NORM_QUAD4,4,targetConn[14:18])
+        m.insertNextCell(NORM_POLYGON,4,targetConn[10:14])
+        m.insertNextCell(NORM_POLYGON,4,targetConn[14:18])
         m.finishInsertingCells();
         m.setCoords(c)
         m.checkCoherency()
@@ -160,6 +160,11 @@ class MEDLoaderTest(unittest.TestCase):
         self.assertTrue(g2_N.isEqual(t));
         #
         mm.write(outFileName,2);
+        #
+        mm=MEDFileMesh.New(outFileName)
+        mbis=mm.getMeshAtLevel(0)
+        m.setName(mm.getName()) ; m.setDescription(mm.getDescription())
+        self.assertTrue(m.isEqual(mbis,1e-12));
         pass
 
     # this test is the testMEDMesh3 except that permutation is dealed here