File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -329,9 +329,7 @@ def get_interpolator(expr: Interpolate) -> Interpolator:
329329 if isinstance (source_topology , VertexOnlyMeshTopology ):
330330 return VomOntoVomInterpolator (expr )
331331 if target_mesh .geometric_dimension != source_mesh .geometric_dimension :
332- raise ValueError ("Cannot interpolate onto a mesh of a different geometric dimension" )
333- if not hasattr (target_mesh , "_parent_mesh" ) or target_mesh ._parent_mesh is not source_mesh :
334- raise ValueError ("Can only interpolate across meshes where the source mesh is the parent of the target" )
332+ raise ValueError ("Cannot interpolate onto a VertexOnlyMesh of a different geometric dimension." )
335333 return SameMeshInterpolator (expr )
336334
337335 if has_mixed_arguments or len (expr .target_space ) > 1 :
You can’t perform that action at this time.
0 commit comments