[MOAB-dev] commit/MOAB: danwu: The file set is meant to contain the entities that came with the original file; the gather set is something for convenience to the root processor, and duplicates entities on other processors. Therefore, the gather set entities should not be part of the file set.

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Mon Jul 22 15:03:42 CDT 2013


1 new commit in MOAB:

https://bitbucket.org/fathomteam/moab/commits/9bcd627602ad/
Changeset:   9bcd627602ad
Branch:      master
User:        danwu
Date:        2013-07-22 22:03:20
Summary:     The file set is meant to contain the entities that came with the original file; the gather set is something for convenience to the root processor, and duplicates entities on other processors. Therefore, the gather set entities should not be part of the file set.

Affected #:  1 file

diff --git a/src/Core.cpp b/src/Core.cpp
index b556858..dfb9cf2 100644
--- a/src/Core.cpp
+++ b/src/Core.cpp
@@ -44,6 +44,7 @@
 #include "moab/WriterIface.hpp"
 #include "moab/ScdInterface.hpp"
 #include "moab/SetIterator.hpp"
+#include "moab/Util.hpp"
 
 #include "BitTag.hpp"
 #include "DenseTag.hpp"
@@ -609,6 +610,14 @@ ErrorCode Core::serial_load_file( const char* file_name,
     Range new_ents;
     get_entities_by_handle( 0, new_ents );
     new_ents = subtract( new_ents, initial_ents );
+
+    // The gather set entities should be excluded from the file set
+    EntityHandle gather_set;
+    Range gather_ents;
+    rval = Util::gather_set_entities( this, gather_set, gather_ents );
+    if (MB_SUCCESS == rval)
+      new_ents = subtract( new_ents, gather_ents );
+
     rval = add_entities( *file_set, new_ents );
   }

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