-// Copyright (C) 2010-2014 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2010-2015 CEA/DEN, EDF R&D, OPEN CASCADE
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
#include "SMDS_MeshVolume.hxx"
#include "utilities.h"
+#include "chrono.hxx"
#include <vtkCellArray.h>
#include <vtkCellData.h>
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);