From 4b11c5a28e145ec1f33c336f2b575c446882b559 Mon Sep 17 00:00:00 2001 From: Frederik Hennig <frederik.hennig@fau.de> Date: Tue, 23 Jul 2024 10:52:51 +0200 Subject: [PATCH] fix variable names --- src/pystencils/gpu/periodicity.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pystencils/gpu/periodicity.py b/src/pystencils/gpu/periodicity.py index 59835b94f..6569fbb0f 100644 --- a/src/pystencils/gpu/periodicity.py +++ b/src/pystencils/gpu/periodicity.py @@ -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 = [] -- GitLab