[MOAB-dev] r3298 - MOAB/trunk
kraftche at cae.wisc.edu
kraftche at cae.wisc.edu
Fri Nov 6 16:19:42 CST 2009
Author: kraftche
Date: 2009-11-06 16:19:42 -0600 (Fri, 06 Nov 2009)
New Revision: 3298
Modified:
MOAB/trunk/MBTest.cpp
Log:
fix broken test code: do not pre-populate adjacency vector with garbage values
Modified: MOAB/trunk/MBTest.cpp
===================================================================
--- MOAB/trunk/MBTest.cpp 2009-11-06 19:58:45 UTC (rev 3297)
+++ MOAB/trunk/MBTest.cpp 2009-11-06 22:19:42 UTC (rev 3298)
@@ -4014,14 +4014,14 @@
// skin the model
for(MBRange::iterator tet_iter = entities.begin(); tet_iter != entities.end(); ++tet_iter)
{
- std::vector<MBEntityHandle> adj(32);
+ std::vector<MBEntityHandle> adj;
error = MB->get_adjacencies(&(*tet_iter), 1, 2, true, adj);
if (MB_SUCCESS != error)
return error;
for(std::vector<MBEntityHandle>::iterator tri_iter = adj.begin();
tri_iter != adj.end(); ++tri_iter)
{
- std::vector<MBEntityHandle> up_adj(2);
+ std::vector<MBEntityHandle> up_adj;
MB->get_adjacencies(&(*tri_iter), 1, 3, false, up_adj);
if(up_adj.size() > 1) {
error = MB->delete_entities(&(*tri_iter), 1);
More information about the moab-dev
mailing list