Skip to content

Commit

Permalink
Fix mesh distribution bug for MeshHierarchy
Browse files Browse the repository at this point in the history
Must always grow the overlap when comm.size > 1.
  • Loading branch information
wence- committed Mar 7, 2018
1 parent 743c20d commit 3cf27a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion firedrake/mesh.py
Expand Up @@ -384,7 +384,7 @@ def __init__(self, plex, name, reorder, distribute):
def callback(self):
"""Finish initialisation."""
del self._callback
if self.comm.size > 1 and distribute:
if self.comm.size > 1:
dmplex.set_adjacency_callback(self._plex)
self._plex.distributeOverlap(1)
dmplex.clear_adjacency_callback(self._plex)
Expand Down

0 comments on commit 3cf27a5

Please sign in to comment.