[MOAB-dev] r3757 - MOAB/trunk/itaps/imesh
acaceres at mcs.anl.gov
acaceres at mcs.anl.gov
Wed Apr 7 16:06:48 CDT 2010
Author: acaceres
Date: 2010-04-07 16:06:48 -0500 (Wed, 07 Apr 2010)
New Revision: 3757
Modified:
MOAB/trunk/itaps/imesh/iMesh_MOAB.cpp
Log:
bug fix: need to treat incoming strings this way for fortran compatibility
Modified: MOAB/trunk/itaps/imesh/iMesh_MOAB.cpp
===================================================================
--- MOAB/trunk/itaps/imesh/iMesh_MOAB.cpp 2010-04-07 20:54:17 UTC (rev 3756)
+++ MOAB/trunk/itaps/imesh/iMesh_MOAB.cpp 2010-04-07 21:06:48 UTC (rev 3757)
@@ -1532,7 +1532,10 @@
iBase_TagHandle *tag_handle, int *err,
const int tag_name_len)
{
- ErrorCode result = MBI->tag_get_handle(tag_name, (Tag&)*tag_handle);
+ std::string tmp_tagname(tag_name, tag_name_len);
+ eatwhitespace(tmp_tagname);
+
+ ErrorCode result = MBI->tag_get_handle(tmp_tagname.c_str(), (Tag&)*tag_handle);
if (MB_SUCCESS != result) {
std::string msg("iMesh_getTagHandle: problem getting handle for tag named '");
More information about the moab-dev
mailing list