Skip to content

Commit fcf7704

Browse files
committed
fix
1 parent 435aa36 commit fcf7704

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

firedrake/interpolation.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,12 @@ def __init__(self, expr: Interpolate):
257257
# Delay calling .unique() because MixedInterpolator is fine with MeshSequence
258258
self.target_mesh = self.target_space.mesh()
259259
"""The domain we are interpolating into."""
260-
self.source_mesh = extract_unique_domain(operand, expand_mesh_sequence=False) or self.target_mesh
260+
261+
try:
262+
source_mesh = extract_unique_domain(operand)
263+
except ValueError:
264+
source_mesh = extract_unique_domain(operand, expand_mesh_sequence=False)
265+
self.source_mesh = source_mesh or self.target_mesh
261266
"""The domain we are interpolating from."""
262267

263268
# Interpolation options

0 commit comments

Comments
 (0)