[MOAB-dev] r4531 - in MOAB/trunk: itaps/imesh src src/moab test

kraftche at cae.wisc.edu kraftche at cae.wisc.edu
Fri Feb 25 11:37:32 CST 2011


Author: kraftche
Date: 2011-02-25 11:37:32 -0600 (Fri, 25 Feb 2011)
New Revision: 4531

Modified:
   MOAB/trunk/itaps/imesh/iMesh_MOAB.cpp
   MOAB/trunk/src/Core.cpp
   MOAB/trunk/src/StructuredElementSeq.cpp
   MOAB/trunk/src/moab/Types.hpp
   MOAB/trunk/test/MBTest.cpp
   MOAB/trunk/test/TestUtil.hpp
Log:
add new error code MB_STRUCTURED_MESH that is returned when an operation is requested for structured mesh that makes sense only for unstructured mesh (e.g. get pointer to connectivity array, set connectivity, etc.)

Modified: MOAB/trunk/itaps/imesh/iMesh_MOAB.cpp
===================================================================
--- MOAB/trunk/itaps/imesh/iMesh_MOAB.cpp	2011-02-25 16:09:19 UTC (rev 4530)
+++ MOAB/trunk/itaps/imesh/iMesh_MOAB.cpp	2011-02-25 17:37:32 UTC (rev 4531)
@@ -122,6 +122,7 @@
   iBase_FAILURE, // MB_INVALID_SIZE,
   iBase_NOT_SUPPORTED, // MB_UNSUPPORTED_OPERATION,
   iBase_INVALID_ARGUMENT, // MB_UNHANDLED_OPTION
+  iBase_INVALID_ENTITY_TYPE, // MB_STRUCTURED_MESH
   iBase_FAILURE // MB_FAILURE};
 };
 

Modified: MOAB/trunk/src/Core.cpp
===================================================================
--- MOAB/trunk/src/Core.cpp	2011-02-25 16:09:19 UTC (rev 4530)
+++ MOAB/trunk/src/Core.cpp	2011-02-25 17:37:32 UTC (rev 4531)
@@ -3270,6 +3270,7 @@
     MB_CASE_STRING(MB_INVALID_SIZE);
     MB_CASE_STRING(MB_UNSUPPORTED_OPERATION);
     MB_CASE_STRING(MB_UNHANDLED_OPTION);
+    MB_CASE_STRING(MB_STRUCTURED_MESH);
     MB_CASE_STRING(MB_FAILURE);
     default: assert(!"unknown error code"); return "(UNKNOWN ERROR CODE)";
   }

Modified: MOAB/trunk/src/StructuredElementSeq.cpp
===================================================================
--- MOAB/trunk/src/StructuredElementSeq.cpp	2011-02-25 16:09:19 UTC (rev 4530)
+++ MOAB/trunk/src/StructuredElementSeq.cpp	2011-02-25 17:37:32 UTC (rev 4531)
@@ -65,7 +65,7 @@
   if (!storage) {
     connect = 0;
     connect_length = 0;
-    return MB_NOT_IMPLEMENTED;
+    return MB_STRUCTURED_MESH;
   }
   
   storage->clear();
@@ -80,7 +80,7 @@
                                         EntityHandle const*,
                                         int )
 {
-  return MB_NOT_IMPLEMENTED;
+  return MB_STRUCTURED_MESH;
 }
 
 EntityHandle* StructuredElementSeq::get_connectivity_array()

Modified: MOAB/trunk/src/moab/Types.hpp
===================================================================


More information about the moab-dev mailing list