Skip to content

Commit

Permalink
Allow bigger partition discrepancies, include missing import
Browse files Browse the repository at this point in the history
  • Loading branch information
MTCam committed Aug 22, 2024
1 parent 21a9681 commit dd8f535
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion bin/meshdist.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,8 @@ def get_mesh_data():
def my_partitioner(mesh, tag_to_elements, num_ranks):
from mirgecom.simutil import geometric_mesh_partitioner
return geometric_mesh_partitioner(
mesh, num_ranks, auto_balance=True, debug=False)
mesh, num_ranks, auto_balance=True, debug=True,
imbalance_tolerance=.2)

part_func = my_partitioner if use_1d_part else None

Expand Down
5 changes: 4 additions & 1 deletion mirgecom/simutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,10 @@
DiscretizationDOFAxisTag
)
from arraycontext import flatten, map_array_container
from grudge.discretization import DiscretizationCollection
from grudge.discretization import (
DiscretizationCollection,
PartID
)
from grudge.dof_desc import DD_VOLUME_ALL
from meshmode.dof_array import DOFArray
from collections import defaultdict
Expand Down

0 comments on commit dd8f535

Please sign in to comment.