Salome HOME
pre: fix bug EDF 7854: src/SMDS/SMDS_UnstructuredGrid.cxx SMDS_UnstructuredGrid:...
authorPaul RASCLE <paul.rascle@edf.fr>
Mon, 5 May 2014 14:03:20 +0000 (16:03 +0200)
committerPaul RASCLE <paul.rascle@edf.fr>
Mon, 5 May 2014 14:03:20 +0000 (16:03 +0200)
src/SMDS/SMDS_UnstructuredGrid.cxx

index 9d878c6..6012a4f 100644 (file)
@@ -1081,8 +1081,11 @@ SMDS_MeshCell* SMDS_UnstructuredGrid::extrudeVolumeFromFace(int vtkVolId,
               double *coords = this->GetPoint(oldId);
               SMDS_MeshNode *newNode = _mesh->AddNode(coords[0], coords[1], coords[2]);
               newId = newNode->getVtkId();
-              std::map<long, int> emptyMap;
-              nodeQuadDomains[oldId] = emptyMap;
+              if (! nodeQuadDomains.count(oldId))
+                {
+                  std::map<long, int> emptyMap;
+                  nodeQuadDomains[oldId] = emptyMap;
+                }
               nodeQuadDomains[oldId][dom1_2] = newId;
             }
           orderedNodes.push_back(newId);