diff --git a/ProcessLib/SmallDeformationWithLIE/Common/PostUtils.cpp b/ProcessLib/SmallDeformationWithLIE/Common/PostUtils.cpp index 8e6ac5bd39835005c181e188db8a8a4760bf6ee9..6355863eb466213582c243d738e10424de915f9e 100644 --- a/ProcessLib/SmallDeformationWithLIE/Common/PostUtils.cpp +++ b/ProcessLib/SmallDeformationWithLIE/Common/PostUtils.cpp @@ -77,14 +77,17 @@ PostProcessTool::PostProcessTool( MeshLib::Element* e = new_eles[eid]; for (unsigned i=0; i<e->getNumberOfNodes(); i++) { + // only fracture nodes auto itr = _map_dup_newNodeIDs.find(e->getNodeIndex(i)); if (itr == _map_dup_newNodeIDs.end()) continue; + // check if a node belongs to the particular fracture group auto itr2 = std::find_if(vec_fracture_nodes.begin(), vec_fracture_nodes.end(), [&](MeshLib::Node const*node) { return node->getID()==e->getNodeIndex(i);}); if (itr2 == vec_fracture_nodes.end()) continue; + e->setNode(i, new_nodes[itr->second]); } }