[MOAB-dev] commit/MOAB: iulian07: try (again) to fix ticket 274

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Tue May 7 12:52:12 CDT 2013


1 new commit in MOAB:

https://bitbucket.org/fathomteam/moab/commits/1d87e526f6bf/
Changeset:   1d87e526f6bf
Branch:      master
User:        iulian07
Date:        2013-05-07 19:45:47
Summary:     try (again) to fix ticket 274

when either existing content or content to be added is in compressed range form, the
resulting data content will be in compressed range form; so adding to the content need to be
based on the flag of data content, not new content

Affected #:  1 file

diff --git a/src/parallel/WriteHDF5Parallel.cpp b/src/parallel/WriteHDF5Parallel.cpp
index e96d933..4fbca9e 100644
--- a/src/parallel/WriteHDF5Parallel.cpp
+++ b/src/parallel/WriteHDF5Parallel.cpp
@@ -1755,6 +1755,7 @@ ErrorCode WriteHDF5Parallel::unpack_set( EntityHandle set,
   
     // If either the current data or the new data is in ranged format,
     // then change the other to ranged format if it isn't already
+  // in both cases when they differ, the data will end up "compressed range"
   std::vector<id_t> tmp;
   if ((flags & mhdf_SET_RANGE_BIT) != (data->setFlags & mhdf_SET_RANGE_BIT)) {
     if (flags & mhdf_SET_RANGE_BIT) {
@@ -1782,7 +1783,7 @@ ErrorCode WriteHDF5Parallel::unpack_set( EntityHandle set,
     }
   }
   
-  if (flags & mhdf_SET_RANGE_BIT)
+  if (data->setFlags & mhdf_SET_RANGE_BIT)
     merge_ranged_ids( contents, num_content, data->contentIds );
   else
     merge_vector_ids( contents, num_content, data->contentIds );

Repository URL: https://bitbucket.org/fathomteam/moab/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.


More information about the moab-dev mailing list