Skip to content
Snippets Groups Projects
Commit 4b11c5a2 authored by Frederik Hennig's avatar Frederik Hennig
Browse files

fix variable names

parent 91c47eea
No related branches found
No related tags found
1 merge request!405Various GPU-related and some general fixes.
Pipeline #67848 passed
......@@ -20,15 +20,15 @@ def create_copy_kernel(
field = Field.create_generic(
"field", len(domain_size), index_dimensions=index_dimensions, dtype=dtype
)
normalized_from_slice = normalize_slice(src_slice, field.spatial_shape)
normalized_to_slice = normalize_slice(dst_slice, field.spatial_shape)
normalized_src_slice = normalize_slice(src_slice, field.spatial_shape)
normalized_dst_slice = normalize_slice(dst_slice, field.spatial_shape)
offset = [
s1.start - s2.start
for s1, s2 in zip(normalized_from_slice, normalized_to_slice)
for s1, s2 in zip(normalized_src_slice, normalized_dst_slice)
]
assert offset == [
s1.stop - s2.stop for s1, s2 in zip(normalized_from_slice, normalized_to_slice)
s1.stop - s2.stop for s1, s2 in zip(normalized_src_slice, normalized_dst_slice)
], "Slices have to have same size"
update_eqs = []
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment