[MOAB-dev] r4639 - MOAB/branches/Version4.0/itaps/imesh

jvporter at wisc.edu jvporter at wisc.edu
Thu Mar 24 17:10:15 CDT 2011


Author: jvporter
Date: 2011-03-24 17:10:14 -0500 (Thu, 24 Mar 2011)
New Revision: 4639

Modified:
   MOAB/branches/Version4.0/itaps/imesh/MBiMesh.hpp
Log:
Update adjacency table to contain more correct values (backported from trunk)


Modified: MOAB/branches/Version4.0/itaps/imesh/MBiMesh.hpp
===================================================================
--- MOAB/branches/Version4.0/itaps/imesh/MBiMesh.hpp	2011-03-24 22:03:15 UTC (rev 4638)
+++ MOAB/branches/Version4.0/itaps/imesh/MBiMesh.hpp	2011-03-24 22:10:14 UTC (rev 4639)
@@ -28,7 +28,7 @@
   virtual ErrorCode delete_mesh();
   virtual ErrorCode delete_entities( const EntityHandle*, const int );
   virtual ErrorCode delete_entities( const Range& );
-  int AdjTable[16];
+  iBase_AdjacencyCost AdjTable[16];
   moab::Interface *mbImpl;
   
   inline void note_set_handle_tag( Tag );
@@ -45,13 +45,13 @@
 inline MBiMesh::MBiMesh(Interface *impl)
         : haveDeletedEntities(false), iCreatedInterface(false), mbImpl(impl)
 {
-  int tmp_table[] = {
-      1, 1, 1, 1,
-      1, 0, 2, 2,
-      1, 2, 0, 2,
-      1, 2, 2, 1
+  iBase_AdjacencyCost tmp_table[] = {
+      iBase_ALL_ORDER_1, iBase_SOME_ORDER_1,    iBase_SOME_ORDER_1,    iBase_ALL_ORDER_1,
+      iBase_ALL_ORDER_1, iBase_UNAVAILABLE,     iBase_SOME_ORDER_LOGN, iBase_SOME_ORDER_LOGN,
+      iBase_ALL_ORDER_1, iBase_SOME_ORDER_LOGN, iBase_UNAVAILABLE,     iBase_SOME_ORDER_LOGN,
+      iBase_ALL_ORDER_1, iBase_SOME_ORDER_LOGN, iBase_SOME_ORDER_LOGN, iBase_ALL_ORDER_1
   };
-  memcpy(AdjTable, tmp_table, 16*sizeof(int));
+  memcpy(AdjTable, tmp_table, 16*sizeof(iBase_AdjacencyCost));
 
   if (!mbImpl) {
     mbImpl = new Core();




















More information about the moab-dev mailing list