[MOAB-dev] r4705 - in MOAB/trunk: src src/io src/parallel src/parallel/moab test
kraftche at cae.wisc.edu
kraftche at cae.wisc.edu
Thu Mar 31 17:30:08 CDT 2011
Author: kraftche
Date: 2011-03-31 17:30:08 -0500 (Thu, 31 Mar 2011)
New Revision: 4705
Modified:
MOAB/trunk/src/BitTag.cpp
MOAB/trunk/src/BitTag.hpp
MOAB/trunk/src/Core.cpp
MOAB/trunk/src/DenseTag.cpp
MOAB/trunk/src/DenseTag.hpp
MOAB/trunk/src/MeshTag.cpp
MOAB/trunk/src/MeshTag.hpp
MOAB/trunk/src/SequenceManager.cpp
MOAB/trunk/src/SequenceManager.hpp
MOAB/trunk/src/SparseTag.cpp
MOAB/trunk/src/SparseTag.hpp
MOAB/trunk/src/TagInfo.cpp
MOAB/trunk/src/TagInfo.hpp
MOAB/trunk/src/TypeSequenceManager.cpp
MOAB/trunk/src/TypeSequenceManager.hpp
MOAB/trunk/src/VarLenDenseTag.cpp
MOAB/trunk/src/VarLenDenseTag.hpp
MOAB/trunk/src/VarLenSparseTag.cpp
MOAB/trunk/src/VarLenSparseTag.hpp
MOAB/trunk/src/io/ReadHDF5.cpp
MOAB/trunk/src/parallel/ParallelComm.cpp
MOAB/trunk/src/parallel/moab/ParallelComm.hpp
MOAB/trunk/test/MBTest.cpp
MOAB/trunk/test/TestTypeSequenceManager.cpp
Log:
better error reporting for tag code (and a couple other spots)
Modified: MOAB/trunk/src/BitTag.cpp
===================================================================
--- MOAB/trunk/src/BitTag.cpp 2011-03-31 20:06:33 UTC (rev 4704)
+++ MOAB/trunk/src/BitTag.cpp 2011-03-31 22:30:08 UTC (rev 4705)
@@ -3,12 +3,13 @@
#include "moab/Range.hpp"
#include "TagCompare.hpp"
#include "SequenceManager.hpp"
+#include "Error.hpp"
#include <stdlib.h>
#include <string.h>
namespace moab {
-BitTag::~BitTag() { release_all_data(0,true); }
+BitTag::~BitTag() { release_all_data(0,0,true); }
TagType BitTag::get_storage_type() const
{ return MB_TAG_BIT; }
@@ -49,7 +50,7 @@
return MB_SUCCESS;
}
-ErrorCode BitTag::release_all_data(SequenceManager*, bool)
+ErrorCode BitTag::release_all_data(SequenceManager*, Error*, bool)
{
for (EntityType t = (EntityType)0; t != MBMAXTYPE; ++t) {
for (size_t i = 0; i < pageList[t].size(); ++i)
@@ -60,6 +61,7 @@
}
ErrorCode BitTag::get_data( const SequenceManager*,
+ Error*,
const EntityHandle* handles,
size_t num_handles,
void* gen_data ) const
@@ -80,11 +82,12 @@
}
ErrorCode BitTag::set_data( SequenceManager* seqman,
+ Error* error,
const EntityHandle* handles,
size_t num_handles,
const void* gen_data )
{
- ErrorCode rval = seqman->check_valid_entities( handles, num_handles, true );
+ ErrorCode rval = seqman->check_valid_entities( error, handles, num_handles, true );
if (MB_SUCCESS != rval)
return rval;
@@ -104,6 +107,7 @@
More information about the moab-dev
mailing list