Skip to content

Commit 86388ae

Browse files
committed
Loosen type restriction in remapping
This type restriction prevents the remapping from being used with `SubArray`s. Checking the parent extends compatibility with `SubArray`s too.
1 parent 2f170b0 commit 86388ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Remapping/distributed_remapping.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -910,7 +910,7 @@ function interpolate!(
910910

911911
found_type = nameof(typeof(dest))
912912

913-
dest isa expected_array_type ||
913+
parent(dest) isa expected_array_type ||
914914
error("dest is a $found_type, expected $expected_array_type")
915915
end
916916
index_field_begin, index_field_end =

0 commit comments

Comments
 (0)