]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
*** empty log message ***
authorageay <ageay>
Tue, 24 Aug 2010 09:50:42 +0000 (09:50 +0000)
committerageay <ageay>
Tue, 24 Aug 2010 09:50:42 +0000 (09:50 +0000)
src/MEDLoader/Swig/MEDLoaderTest.py
src/MEDLoader/Test/MEDLoaderTest.cxx

index ca10477b93f639c8197f36ede8024e2ba02dc3c1..5f1adc3304822ca74702c28edef8c86e0c58ef27 100644 (file)
@@ -357,6 +357,8 @@ class MEDLoaderTest(unittest.TestCase):
         vec=[0.,0.,1.]
         nodes=m3d.findNodesOnPlane(pt,vec,1e-12);
         m2d=m3d.buildFacePartOfMySelfNode(nodes,True);
+        renumber=[1,2,0,4,3]
+        m2d.renumberCells(renumber,False);
         m2d.setName("ExampleOfMultiDimW");
         meshes=[m2d,m3d]
         MEDLoader.WriteUMeshes(fileName,meshes,True);
index 4abbf0d964f5784c9685cf8fe682efb11e113279..bab43105e212474e32326fdc0bb8de62f7246931 100644 (file)
@@ -502,6 +502,8 @@ void MEDLoaderTest::testWriteUMeshesRW1()
   std::vector<int> nodes;
   m3d->findNodesOnPlane(pt,vec,1e-12,nodes);
   MEDCouplingUMesh *m2d=(MEDCouplingUMesh *)m3d->buildFacePartOfMySelfNode(&nodes[0],&nodes[0]+nodes.size(),true);
+  const int renumber[5]={1,2,0,4,3};
+  m2d->renumberCells(renumber,false);
   m2d->setName("ExampleOfMultiDimW");
   std::vector<const MEDCouplingUMesh *> meshes;
   meshes.push_back(m2d);