[MOAB-dev] r3566 - MOAB/trunk
iulian at mcs.anl.gov
iulian at mcs.anl.gov
Thu Mar 4 15:16:15 CST 2010
Author: iulian
Date: 2010-03-04 15:16:15 -0600 (Thu, 04 Mar 2010)
New Revision: 3566
Modified:
MOAB/trunk/Tqdcfr.cpp
Log:
fix a bug in reading a cub file in which groups are defined
in order to get global id tags, we need to allocate enough memory for all "cub_ids"
Modified: MOAB/trunk/Tqdcfr.cpp
===================================================================
--- MOAB/trunk/Tqdcfr.cpp 2010-03-04 14:45:36 UTC (rev 3565)
+++ MOAB/trunk/Tqdcfr.cpp 2010-03-04 21:16:15 UTC (rev 3566)
@@ -993,7 +993,7 @@
if (MB_SUCCESS != result) return result;
if (tmp_ents.empty() && 0 != id_buf_size) return MB_FAILURE;
- std::vector<int> cub_ids(id_buf_size);
+ std::vector<int> cub_ids(tmp_ents.size());
result = mdbImpl->tag_get_data(globalIdTag, tmp_ents, &cub_ids[0]);
if (MB_SUCCESS != result && MB_TAG_NOT_FOUND != result) return result;
More information about the moab-dev
mailing list