[MOAB-dev] r4923 - MOAB/trunk/itaps/igeom

iulian at mcs.anl.gov iulian at mcs.anl.gov
Thu Jun 2 10:43:37 CDT 2011


Author: iulian
Date: 2011-06-02 10:43:36 -0500 (Thu, 02 Jun 2011)
New Revision: 4923

Modified:
   MOAB/trunk/itaps/igeom/SmoothFaceEval.cpp
   MOAB/trunk/itaps/igeom/iGeom_MOAB.cpp
Log:
api change for Interface::tag_create


Modified: MOAB/trunk/itaps/igeom/SmoothFaceEval.cpp
===================================================================
--- MOAB/trunk/itaps/igeom/SmoothFaceEval.cpp	2011-06-02 15:03:19 UTC (rev 4922)
+++ MOAB/trunk/itaps/igeom/SmoothFaceEval.cpp	2011-06-02 15:43:36 UTC (rev 4923)
@@ -357,7 +357,7 @@
 // they will be used for control points
 {
    double defTangents[6] = { 0., 0., 0., 0., 0., 0. };
-   moab::ErrorCode rval = _mb->tag_create("TANGENTS", 6, MB_TYPE_DOUBLE,
+   moab::ErrorCode rval = _mb->tag_get_handle("TANGENTS", 6, MB_TYPE_DOUBLE,
                                           _tangentsTag, MB_TAG_DENSE|MB_TAG_CREAT,
                                           &defTangents);
    if (MB_SUCCESS != rval)

Modified: MOAB/trunk/itaps/igeom/iGeom_MOAB.cpp
===================================================================
--- MOAB/trunk/itaps/igeom/iGeom_MOAB.cpp	2011-06-02 15:03:19 UTC (rev 4922)
+++ MOAB/trunk/itaps/igeom/iGeom_MOAB.cpp	2011-06-02 15:43:36 UTC (rev 4923)
@@ -54,7 +54,8 @@
    // get directly the sets with geom dim 2, and from there create the SmoothFaceEval
    Tag geom_tag, gid_tag;
    ErrorCode rval = MBI->tag_get_handle(GEOM_DIMENSION_TAG_NAME, 1, MB_TYPE_INTEGER, geom_tag);
-   rval = MBI->tag_get_handle(GLOBAL_ID_TAG_NAME, gid_tag);
+   rval = MBI->tag_get_handle(GLOBAL_ID_TAG_NAME, 1, MB_TYPE_INTEGER,
+       gid_tag, MB_TAG_DENSE|MB_TAG_CREAT );
 
 #if 0
    // traverse the model, dimension 2, 1, 0
@@ -175,13 +176,13 @@
 
    Tag facetCtrlTag;
    double defControls[18] = { 0. };
-   rval = MBI->tag_create("CONTROLFACE", 18, MB_TYPE_DOUBLE,
+   rval = MBI->tag_get_handle("CONTROLFACE", 18, MB_TYPE_DOUBLE,
          facetCtrlTag, MB_TAG_DENSE|MB_TAG_EXCL, &defControls);
    assert(rval == MB_SUCCESS);
 
    Tag facetEdgeCtrlTag;
    double defControls2[27] = { 0. }; // corresponding to 9 control points on edges, in order from edge 0, 1, 2 ( 1-2, 2-0, 0-1 )
-   rval = MBI->tag_create("CONTROLEDGEFACE", 27, MB_TYPE_DOUBLE,
+   rval = MBI->tag_get_handle("CONTROLEDGEFACE", 27, MB_TYPE_DOUBLE,
          facetEdgeCtrlTag, MB_TAG_DENSE|MB_TAG_EXCL, &defControls2);
    assert(rval == MB_SUCCESS);
    // if the









More information about the moab-dev mailing list