]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
*** empty log message ***
authorageay <ageay>
Thu, 16 Dec 2010 09:35:14 +0000 (09:35 +0000)
committerageay <ageay>
Thu, 16 Dec 2010 09:35:14 +0000 (09:35 +0000)
src/ParaMEDMEM/ICoCoMEDField.cxx

index cc3b61dd55dc90a5db07ce836812989dbbafdd52..f3f9e66a028932000d712c760298ea1d3b52d0a6 100644 (file)
@@ -88,6 +88,7 @@ namespace ICoCo
     //creating a connectivity table that complies to MED (1 indexing)
     //and passing it to _mesh
     int* conn=new int[triofield._nodes_per_elem];
+    _mesh->setMeshDimension(triofield._mesh_dim);
     for (int i=0; i<triofield._nb_elems;i++)
       {
         for(int j=0;j<triofield._nodes_per_elem;j++)
@@ -98,7 +99,6 @@ namespace ICoCo
       }
     delete[] conn;
     
-    _mesh->setMeshDimension(triofield._mesh_dim);
     _mesh->finishInsertingCells();
     
     //field on the sending end