[MOAB-dev] r5413 - in MOAB/trunk: examples/itaps itaps/imesh

jvporter at wisc.edu jvporter at wisc.edu
Mon Mar 5 14:39:51 CST 2012


Author: jvporter
Date: 2012-03-05 14:39:49 -0600 (Mon, 05 Mar 2012)
New Revision: 5413

Modified:
   MOAB/trunk/examples/itaps/TagIterateC.c
   MOAB/trunk/examples/itaps/TagIterateF.F
   MOAB/trunk/itaps/imesh/MOAB_iMesh_extensions_tests.cpp
   MOAB/trunk/itaps/imesh/iMesh_MOAB.cpp
   MOAB/trunk/itaps/imesh/iMesh_extensions.h
Log:
Add iMesh_stepEntIter, rename iMesh_stepIter to iMesh_stepEntArrIter


Modified: MOAB/trunk/examples/itaps/TagIterateC.c
===================================================================
--- MOAB/trunk/examples/itaps/TagIterateC.c	2012-02-29 21:23:30 UTC (rev 5412)
+++ MOAB/trunk/examples/itaps/TagIterateC.c	2012-03-05 20:39:49 UTC (rev 5413)
@@ -59,7 +59,7 @@
     CHKERR(err, "Failed to create a tag.\n");
     
       /* step the iterator over count entities */
-    iMesh_stepIter(mesh, iter, count, &atend, &err);
+    iMesh_stepEntArrIter(mesh, iter, count, &atend, &err);
     CHKERR(err, "Failed to step iterator.\n");
 
       /* operate on tag data, or store it for later */

Modified: MOAB/trunk/examples/itaps/TagIterateF.F
===================================================================
--- MOAB/trunk/examples/itaps/TagIterateF.F	2012-02-29 21:23:30 UTC (rev 5412)
+++ MOAB/trunk/examples/itaps/TagIterateF.F	2012-03-05 20:39:49 UTC (rev 5413)
@@ -49,7 +49,7 @@
      1     rpdata, count, ierr)
     
 c step the iterator over count entities
-      call iMesh_stepIter(%VAL(mesh), %VAL(iter), %VAL(count), atend, 
+      call iMesh_stepEntArrIter(%VAL(mesh), %VAL(iter), %VAL(count), atend, 
      1     ierr)
 
       if (atend .eq. 0) go to 10

Modified: MOAB/trunk/itaps/imesh/MOAB_iMesh_extensions_tests.cpp
===================================================================
--- MOAB/trunk/itaps/imesh/MOAB_iMesh_extensions_tests.cpp	2012-02-29 21:23:30 UTC (rev 5412)
+++ MOAB/trunk/itaps/imesh/MOAB_iMesh_extensions_tests.cpp	2012-03-05 20:39:49 UTC (rev 5413)
@@ -6,10 +6,12 @@
 #include <algorithm>
 
 void test_tag_iterate();
+void test_step_iter();
 
 int main( int argc, char* argv[] )
 {
   REGISTER_TEST( test_tag_iterate );
+  REGISTER_TEST( test_step_iter );
 
   return RUN_TESTS( argc, argv ); 
 }
@@ -71,7 +73,7 @@
   iMesh_tagIterate(mesh, tagh, iter, &data, &count, &err);
   CHECK_EQUAL( iBase_SUCCESS, err );
   if (count != 2 || data[0] != coords[3] || data[1] != coords[4]) CHECK_EQUAL( iBase_SUCCESS, iBase_FAILURE );
-  iMesh_stepIter(mesh, iter, 2, &atend, &err);
+  iMesh_stepEntArrIter(mesh, iter, 2, &atend, &err);


More information about the moab-dev mailing list