[MOAB-dev] r4173 - MOAB/trunk/itaps/imesh
kraftche at cae.wisc.edu
kraftche at cae.wisc.edu
Tue Sep 28 07:43:45 CDT 2010
Author: kraftche
Date: 2010-09-28 07:43:44 -0500 (Tue, 28 Sep 2010)
New Revision: 4173
Modified:
MOAB/trunk/itaps/imesh/iMesh_MOAB.cpp
Log:
pass back a valid tag handle when returning iBase_TAG_ALREADY_ALLOCATED
Modified: MOAB/trunk/itaps/imesh/iMesh_MOAB.cpp
===================================================================
--- MOAB/trunk/itaps/imesh/iMesh_MOAB.cpp 2010-09-28 00:35:27 UTC (rev 4172)
+++ MOAB/trunk/itaps/imesh/iMesh_MOAB.cpp 2010-09-28 12:43:44 UTC (rev 4173)
@@ -1415,8 +1415,10 @@
if (MB_SUCCESS != result) {
std::string msg("iMesh_createTag: ");
- if (MB_ALREADY_ALLOCATED == result)
+ if (MB_ALREADY_ALLOCATED == result) {
msg += "Tag already exists with name: \"";
+ *tag_handle = (iBase_TagHandle) new_tag;
+ }
else
msg += "Failed to create tag with name: \"";
msg += tag_name;
More information about the moab-dev
mailing list