[MOAB-dev] r2570 - MOAB/trunk/tools/iMesh
kraftche at mcs.anl.gov
kraftche at mcs.anl.gov
Sat Jan 24 13:32:45 CST 2009
Author: kraftche
Date: 2009-01-24 13:32:45 -0600 (Sat, 24 Jan 2009)
New Revision: 2570
Modified:
MOAB/trunk/tools/iMesh/iMesh_MOAB.cpp
Log:
iMesh_destroyTag w/ forced==false must also check for tag value on mesh. fixes failing test
Modified: MOAB/trunk/tools/iMesh/iMesh_MOAB.cpp
===================================================================
--- MOAB/trunk/tools/iMesh/iMesh_MOAB.cpp 2009-01-24 19:15:21 UTC (rev 2569)
+++ MOAB/trunk/tools/iMesh/iMesh_MOAB.cpp 2009-01-24 19:32:45 UTC (rev 2570)
@@ -1935,6 +1935,14 @@
RETURN(iBase_FAILURE);
}
}
+ // check if tag value is set on mesh
+ const void* data_ptr;
+ result = MBI->tag_get_data( this_tag, 0, 0, &data_ptr );
+ if (MB_SUCCESS == result) {
+ iMesh_processError(iBase_FAILURE, "iMesh_destroyTag: forced=false and mesh"
+ " is still assigned this tag.");
+ RETURN(iBase_FAILURE);
+ }
}
// ok, good to go - either forced or no entities with this tag
More information about the moab-dev
mailing list