[MOAB-dev] r4638 - MOAB/trunk/itaps/imesh
jvporter at wisc.edu
jvporter at wisc.edu
Thu Mar 24 17:03:15 CDT 2011
Author: jvporter
Date: 2011-03-24 17:03:15 -0500 (Thu, 24 Mar 2011)
New Revision: 4638
Modified:
MOAB/trunk/itaps/imesh/MBiMesh.hpp
Log:
Use enumeration names for adj table
Modified: MOAB/trunk/itaps/imesh/MBiMesh.hpp
===================================================================
--- MOAB/trunk/itaps/imesh/MBiMesh.hpp 2011-03-24 19:50:32 UTC (rev 4637)
+++ MOAB/trunk/itaps/imesh/MBiMesh.hpp 2011-03-24 22:03:15 UTC (rev 4638)
@@ -27,7 +27,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 );
@@ -44,13 +44,13 @@
inline MBiMesh::MBiMesh(Interface *impl)
: haveDeletedEntities(false), iCreatedInterface(false), mbImpl(impl)
{
- int tmp_table[] = {
- 1, 4, 4, 1,
- 1, 0, 5, 5,
- 1, 5, 0, 5,
- 1, 5, 5, 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