[MOAB-dev] r4690 - MOAB/trunk/src

kraftche at cae.wisc.edu kraftche at cae.wisc.edu
Wed Mar 30 16:08:10 CDT 2011


Author: kraftche
Date: 2011-03-30 16:08:10 -0500 (Wed, 30 Mar 2011)
New Revision: 4690

Modified:
   MOAB/trunk/src/DenseTag.cpp
Log:
more informative error code

Modified: MOAB/trunk/src/DenseTag.cpp
===================================================================
--- MOAB/trunk/src/DenseTag.cpp	2011-03-30 16:40:13 UTC (rev 4689)
+++ MOAB/trunk/src/DenseTag.cpp	2011-03-30 21:08:10 UTC (rev 4690)
@@ -113,7 +113,7 @@
   if (!mem && allocate) {
     mem = seq->data()->allocate_tag_array( mySequenceArray, get_size(), get_default_value() );
     if (!mem)
-      return MB_FAILURE;
+      return MB_MEMORY_ALLOCATION_FAILED;
     
     if (!get_default_value()) 
       memset( mem, 0, get_size() * seq->data()->size() );








































More information about the moab-dev mailing list