[MOAB-dev] r2542 - MOAB/trunk

kraftche at mcs.anl.gov kraftche at mcs.anl.gov
Tue Jan 13 21:28:39 CST 2009


Author: kraftche
Date: 2009-01-13 21:28:39 -0600 (Tue, 13 Jan 2009)
New Revision: 2542

Modified:
   MOAB/trunk/HigherOrderFactory.cpp
   MOAB/trunk/HigherOrderFactory.hpp
Log:
add version of HigherOrderFactory::convert that accepts a MBRange rather than an entity set

Modified: MOAB/trunk/HigherOrderFactory.cpp
===================================================================
--- MOAB/trunk/HigherOrderFactory.cpp	2009-01-14 03:27:34 UTC (rev 2541)
+++ MOAB/trunk/HigherOrderFactory.cpp	2009-01-14 03:28:39 UTC (rev 2542)
@@ -66,19 +66,28 @@
   //mMapInitialized = true;
 }
 
+
 MBErrorCode HigherOrderFactory::convert( const MBEntityHandle meshset, 
                                          const bool mid_edge_nodes, 
                                          const bool mid_face_nodes, 
                                          const bool mid_volume_nodes )
 {
+  MBRange entities;
+  mMB->get_entities_by_handle(meshset, entities, true);
+  return convert( entities, mid_edge_nodes, mid_face_nodes, mid_volume_nodes );
+}
 
+MBErrorCode HigherOrderFactory::convert( const MBRange& entities,
+                                         const bool mid_edge_nodes, 
+                                         const bool mid_face_nodes, 
+                                         const bool mid_volume_nodes )
+
+{
+
   // TODO --  add some more code to prevent from splitting of entity sequences when we don't need to.
   // Say we have all hex8's in our mesh and 3 falses are passed in.  In the end, no conversion will
   // happen, but the sequences could still be split up.
 
-  MBRange entities;
-  mMB->get_entities_by_handle(meshset, entities, true);
-  
   // find out what entity sequences we need to convert 
   // and where, if necessary, to split them
 

Modified: MOAB/trunk/HigherOrderFactory.hpp
===================================================================
--- MOAB/trunk/HigherOrderFactory.hpp	2009-01-14 03:27:34 UTC (rev 2541)
+++ MOAB/trunk/HigherOrderFactory.hpp	2009-01-14 03:28:39 UTC (rev 2542)
@@ -42,6 +42,9 @@
   MBErrorCode convert(const MBEntityHandle meshset, const bool mid_edge_nodes, 
                        const bool mid_face_nodes, const bool mid_volume_nodes);
 
+  MBErrorCode convert( const MBRange& entities, const bool mid_edge_nodes, 
+                       const bool mid_face_nodes, const bool mid_volume_nodes);
+
   unsigned char mNodeMap[MBMAXTYPE][8][8];
 
 private:




More information about the moab-dev mailing list