From bc0976b8b44b73c04b84f49aa21ee254b189efe6 Mon Sep 17 00:00:00 2001
From: Norihiro Watanabe <norihiro.watanabe@ufz.de>
Date: Fri, 21 Oct 2016 11:24:10 +0200
Subject: [PATCH] [PCS/LIE] add comments

---
 ProcessLib/SmallDeformationWithLIE/Common/PostUtils.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/ProcessLib/SmallDeformationWithLIE/Common/PostUtils.cpp b/ProcessLib/SmallDeformationWithLIE/Common/PostUtils.cpp
index 8e6ac5bd398..6355863eb46 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]);
         }
     }
-- 
GitLab