We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 435aa36 commit fcf7704Copy full SHA for fcf7704
1 file changed
firedrake/interpolation.py
@@ -257,7 +257,12 @@ def __init__(self, expr: Interpolate):
257
# Delay calling .unique() because MixedInterpolator is fine with MeshSequence
258
self.target_mesh = self.target_space.mesh()
259
"""The domain we are interpolating into."""
260
- self.source_mesh = extract_unique_domain(operand, expand_mesh_sequence=False) or self.target_mesh
+
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
266
"""The domain we are interpolating from."""
267
268
# Interpolation options
0 commit comments