diff --git a/ProcessLib/LIE/Common/PostUtils.cpp b/ProcessLib/LIE/Common/PostUtils.cpp index 3cbead53889b5ceeccf28efa9e9c22f01e86d6e6..2970b6a472062914bad30c5c7f8de60dbaac8f87 100644 --- a/ProcessLib/LIE/Common/PostUtils.cpp +++ b/ProcessLib/LIE/Common/PostUtils.cpp @@ -161,7 +161,7 @@ PostProcessTool::PostProcessTool( // index of this fracture pos = BaseLib::findIndex(br_matids, frac_matid); } - else if ((*prop_levelset2)[eid] > 0) + else { // index of the other fracture pos = BaseLib::findIndex(br_matids, *frac2_matid); @@ -193,7 +193,7 @@ PostProcessTool::PostProcessTool( assert(pos != std::numeric_limits<std::size_t>::max()); new_node_id = dup_newNodeIDs[pos]; } - else if ((*prop_levelset2)[eid] > 0) + else { // set the last duplicated node new_node_id = dup_newNodeIDs.back();