[MOAB-dev] r1384 - MOAB/trunk

kraftche at mcs.anl.gov kraftche at mcs.anl.gov
Tue Nov 13 16:03:42 CST 2007


Author: kraftche
Date: 2007-11-13 16:03:42 -0600 (Tue, 13 Nov 2007)
New Revision: 1384

Modified:
   MOAB/trunk/MBTest.cpp
Log:
check return value of MBCore::merge_entities when in mb_merge_test

Modified: MOAB/trunk/MBTest.cpp
===================================================================
--- MOAB/trunk/MBTest.cpp	2007-11-13 19:12:25 UTC (rev 1383)
+++ MOAB/trunk/MBTest.cpp	2007-11-13 22:03:42 UTC (rev 1384)
@@ -3854,9 +3854,11 @@
   result = find_coincident_nodes(MB,nodes, coin_nodes);
   cout <<"coin_nodes.size() = "<<coin_nodes.size() <<"\n";
   std::vector< std::pair<MBEntityHandle, MBEntityHandle> >::iterator n_iter;
-  for (n_iter=coin_nodes.begin(); n_iter != coin_nodes.end(); n_iter++)
-    MB->merge_entities((*n_iter).first, (*n_iter).second, false, true);
-  
+  for (n_iter=coin_nodes.begin(); n_iter != coin_nodes.end(); n_iter++) {
+    result = MB->merge_entities((*n_iter).first, (*n_iter).second, false, true);
+    if (MB_SUCCESS != result)
+      return result;
+  }
     /*  std::vector<std::pair<MBEntityHandle, MBEntityHandle> > coin_faces;
         int nodes_per_elt = 4;
         result = find_coincident_elements(forward_lower, nodes_per_elt, coin_faces);




More information about the moab-dev mailing list