Permalink
Browse files

Merge pull request #2 from pigay/fix-semifar-shared-remote

fix semifar handling of shared remote nodes
  • Loading branch information...
pigay committed Jul 4, 2015
2 parents d20b98b + 709eb33 commit f62f5028dd90f08ee80bb5bd79b8a55b2618bf9f
Showing with 16 additions and 3 deletions.
  1. +16 −3 src/vsgprtree3@t@-extras.c
View
@@ -345,8 +345,14 @@ static void recursive_near_func (VsgPRTree3@t@Node *one,
VsgPRTree3@t@NodeInfo one_child_info;
#ifdef VSG_HAVE_MPI
- // *** *-REMOTE
- if (PRTREE3@T@NODE_IS_REMOTE (one_child)) continue;
+ if (PRTREE3@T@NODE_IS_REMOTE (one_child))
+ {
+ /* skip private remotes, or shared remotes when "other" is remote (visitor)
+ */
+ if (PRTREE3@T@NODE_IS_PRIVATE (one_child) ||
+ PRTREE3@T@NODE_IS_REMOTE (other))
+ continue;
+ }
#endif
_vsg_prtree3@t@node_get_info (one_child, &one_child_info, one_info,
@@ -365,7 +371,14 @@ static void recursive_near_func (VsgPRTree3@t@Node *one,
#ifdef VSG_HAVE_MPI
// *** *-REMOTE
- if (PRTREE3@T@NODE_IS_REMOTE (other_child)) continue;
+ if (PRTREE3@T@NODE_IS_REMOTE (other_child))
+ {
+ /* skip private remotes, or shared remotes when "one" is remote (visitor)
+ */
+ if (PRTREE3@T@NODE_IS_PRIVATE (other_child) ||
+ PRTREE3@T@NODE_IS_REMOTE (one))
+ continue;
+ }
#endif
_vsg_prtree3@t@node_get_info (other_child, &other_child_info,

0 comments on commit f62f502

Please sign in to comment.