[MOAB-dev] r4670 - MOAB/trunk/itaps/imesh

kraftche at cae.wisc.edu kraftche at cae.wisc.edu
Mon Mar 28 17:10:15 CDT 2011


Author: kraftche
Date: 2011-03-28 17:10:15 -0500 (Mon, 28 Mar 2011)
New Revision: 4670

Modified:
   MOAB/trunk/itaps/imesh/iMeshP_MOAB.cpp
Log:
fix build issue with IBM compiler

Modified: MOAB/trunk/itaps/imesh/iMeshP_MOAB.cpp
===================================================================
--- MOAB/trunk/itaps/imesh/iMeshP_MOAB.cpp	2011-03-28 21:57:36 UTC (rev 4669)
+++ MOAB/trunk/itaps/imesh/iMeshP_MOAB.cpp	2011-03-28 22:10:15 UTC (rev 4670)
@@ -286,27 +286,6 @@
     }
 };
 
-static ErrorCode intersect_with_set( Interface* mb, Range& range, EntityHandle set )
-{
-  Range tmp;
-  ErrorCode result;
-  result = mb->get_entities_by_handle( set, tmp );
-  range = intersect( range, tmp );
-  return result;
-}
-
-static ErrorCode intersect_with_set( Interface* mb, std::vector<EntityHandle>& list, 
-                                     EntityHandle set )
-{
-  size_t w = 0;
-  for (size_t r = 0; r < list.size(); ++r) {
-    if (mb->contains_entities( set, &list[r], 1))
-      list[w++] = list[r];
-  }
-  list.resize(w);
-  return MB_SUCCESS;
-}
-
 template <class Container> 
 class SetIntersectIter : public MBIter<Container>
 {
@@ -321,6 +300,27 @@
       : MBIter<Container>( type, topology, set, array_size ),
         otherSet( other_set )
       {}
+
+
+    inline ErrorCode intersect_with_set( Interface* mb, Range& range )
+    {
+      Range tmp;
+      ErrorCode result;
+      result = mb->get_entities_by_handle( otherSet, tmp );
+      range = intersect( range, tmp );
+      return result;
+    }
+
+    inline ErrorCode intersect_with_set( Interface* mb, std::vector<EntityHandle>& list )
+    {
+      size_t w = 0;
+      for (size_t r = 0; r < list.size(); ++r) {


More information about the moab-dev mailing list