[MOAB-dev] r5155 - MOAB/trunk/src
iulian at mcs.anl.gov
iulian at mcs.anl.gov
Thu Sep 8 11:34:12 CDT 2011
Author: iulian
Date: 2011-09-08 11:34:11 -0500 (Thu, 08 Sep 2011)
New Revision: 5155
Modified:
MOAB/trunk/src/AEntityFactory.cpp
Log:
when merge_entities for 2 nodes is executed, this method of "check explicit adjacencies" is called in cascade. I think that we should not create new entities when we are retrieving the existing adjacencies for checking;
we have a hard time keeping track of faces and edges already there, we do not want to create additional headaches.
So the flag "create_if_missing" is set to false.
All tests pass in moab and meshkit.
I think this was a bug; I am always worried when the comment for commit is bigger than the change itself :)
Modified: MOAB/trunk/src/AEntityFactory.cpp
===================================================================
--- MOAB/trunk/src/AEntityFactory.cpp 2011-09-06 17:55:43 UTC (rev 5154)
+++ MOAB/trunk/src/AEntityFactory.cpp 2011-09-08 16:34:11 UTC (rev 5155)
@@ -1382,7 +1382,7 @@
ErrorCode result;
result = thisMB->get_adjacencies(&this_ent, 1,
thisMB->dimension_from_handle(this_ent)+1,
- true, all_adjs, Interface::UNION);
+ false, all_adjs, Interface::UNION);
if (MB_SUCCESS != result) return result;
// - create explicit adjacency to these entities
More information about the moab-dev
mailing list