Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion firedrake/preconditioners/asm.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,18 @@ def splitting(V):
V_local_ises_indices = tuple(iset.indices for iset in V.dof_dset.local_ises)
Z_local_ises_indices = splitting(V_local_ises_indices)

# Compute the coloring
useCone, useClosure = mesh_dm.getBasicAdjacency()
if depth == mesh_dm.getDimension():
distance = 2
mesh_dm.setBasicAdjacency(True, True)
else:
distance = 3
mesh_dm.setBasicAdjacency(False, True)
colors = get_colors(mesh_dm, use_coloring, depth, distance=distance)
mesh_dm.setBasicAdjacency(useCone, useClosure)

# Build index sets for the patches
colors = get_colors(mesh_dm, use_coloring, depth, distance=3)
ises = [build_vanka_indices(Z, Z_local_ises_indices, mesh_dm, ordering, self.prefix,
include_star, color) for color in colors]
return ises
Expand Down
Loading