Skip to content

Commit 948c50e

Browse files
committed
Fixup
1 parent 21c9173 commit 948c50e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

firedrake/interpolation.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1055,7 +1055,11 @@ def _interpolator(tensor, expr, subset, access, bcs=None):
10551055

10561056
# Compute the reciprocal of the DOF multiplicity
10571057
m_ = get_interp_node_map(source_mesh, target_mesh, W)
1058-
m_indices = W.dof_dset.scalar_lgmap.apply(m_.values_with_halo[cell_set.indices])
1058+
if isinstance(cell_set, op2.Subset):
1059+
m_local_indices = m_.values_with_halo[cell_set.indices]
1060+
else:
1061+
m_local_indices = m_.values
1062+
m_indices = W.dof_dset.scalar_lgmap.apply(m_local_indices)
10591063
m_shape = m_indices.shape + W.shape
10601064
wdat = W.make_dat()
10611065
with wdat.vec as w:

0 commit comments

Comments
 (0)