[MOAB-dev] r4454 - MOAB/trunk/src/parallel

hongjun at mcs.anl.gov hongjun at mcs.anl.gov
Tue Jan 18 12:06:54 CST 2011


Author: hongjun
Date: 2011-01-18 12:06:54 -0600 (Tue, 18 Jan 2011)
New Revision: 4454

Modified:
   MOAB/trunk/src/parallel/ParallelComm.cpp
Log:
o Resolve recent parallel build fail
o Unpack entities in set as vector not range
o Remote handle can not be stored as range


Modified: MOAB/trunk/src/parallel/ParallelComm.cpp
===================================================================
--- MOAB/trunk/src/parallel/ParallelComm.cpp	2011-01-18 17:46:44 UTC (rev 4453)
+++ MOAB/trunk/src/parallel/ParallelComm.cpp	2011-01-18 18:06:54 UTC (rev 4454)
@@ -2522,25 +2522,14 @@
   if (!no_sets) std::sort(entities.begin(), entities.end());
   
   for (rit = new_sets.begin(), i = 0; rit != new_sets.end(); rit++, i++) {
-    if (options_vec[i] & MESHSET_SET) {
-        // unpack entities as a range
-      Range set_range, tmp_range;
-      UNPACK_RANGE(buff_ptr, tmp_range);
-      result = get_local_handles(tmp_range, set_range, entities);      
-      RRA("Failed to get local handles for unordered set contents.");
-      result = mbImpl->add_entities(*rit, set_range);
-      RRA("Failed to add ents to unordered set in unpack.");
-    }
-    else if (options_vec[i] & MESHSET_ORDERED) {
-        // unpack entities as vector, with length
-      UNPACK_INT(buff_ptr, num_ents);
-      members.resize(num_ents);
-      if (num_ents) UNPACK_EH(buff_ptr, &members[0], num_ents);
-      result = get_local_handles(&members[0], num_ents, entities);
-      RRA("Failed to get local handles for ordered set contents.");
-      result = mbImpl->add_entities(*rit, &members[0], num_ents);
-      RRA("Failed to add ents to ordered set in unpack.");
-    }
+    // unpack entities as vector, with length
+    UNPACK_INT(buff_ptr, num_ents);
+    members.resize(num_ents);
+    if (num_ents) UNPACK_EH(buff_ptr, &members[0], num_ents);
+    result = get_local_handles(&members[0], num_ents, entities);
+    RRA("Failed to get local handles for ordered set contents.");
+    result = mbImpl->add_entities(*rit, &members[0], num_ents);
+    RRA("Failed to add ents to ordered set in unpack.");
   }
 
   std::vector<int> num_pch(2*new_sets.size());















More information about the moab-dev mailing list