[MOAB-dev] r1898 - MOAB/trunk/tools/iMesh

tautges at mcs.anl.gov tautges at mcs.anl.gov
Fri Jun 13 20:47:00 CDT 2008


Author: tautges
Date: 2008-06-13 20:47:00 -0500 (Fri, 13 Jun 2008)
New Revision: 1898

Modified:
   MOAB/trunk/tools/iMesh/iMesh_MOAB.cpp
Log:
Stupid error not checking for non-zero entity set.



Modified: MOAB/trunk/tools/iMesh/iMesh_MOAB.cpp
===================================================================
--- MOAB/trunk/tools/iMesh/iMesh_MOAB.cpp	2008-06-13 20:19:20 UTC (rev 1897)
+++ MOAB/trunk/tools/iMesh/iMesh_MOAB.cpp	2008-06-14 01:47:00 UTC (rev 1898)
@@ -3003,7 +3003,7 @@
     if (MB_SUCCESS != result) return result;
     unsigned int old_size = from_ents.size();
     from_ents.merge(int_ents);
-    if (old_size != from_ents.size()) {
+    if (old_size != from_ents.size() && in_set) {
       result = MBI->add_entities(in_set, int_ents);
       if (MB_SUCCESS != result) return result;
     }
@@ -3016,7 +3016,7 @@
     if (MB_SUCCESS != result) return result;
     unsigned int old_size = from_ents.size();
     from_ents.merge(int_ents);
-    if (old_size != from_ents.size()) {
+    if (old_size != from_ents.size() && in_set) {
       result = MBI->add_entities(in_set, int_ents);
       if (MB_SUCCESS != result) return result;
     }




More information about the moab-dev mailing list