From 00df82df70cb8720d4d81e9ad60268b6e5a4bcbe Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Tue, 7 Aug 2018 16:21:19 +0200 Subject: ell_relax: fix index name --- ell_relax.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ell_relax.c b/ell_relax.c index ced949c..e0eadd4 100644 --- a/ell_relax.c +++ b/ell_relax.c @@ -134,8 +134,8 @@ static void boundaries_apply_fixdiff(double *dst, ptrdiff_t dst_stride, boundary_stride *= -1; for (size_t i = 0; i < boundary_size; i++) { - for (int i = 1; i <= FD_STENCIL_MAX; i++) - dst[boundary_stride * i] = dst[-boundary_stride * i]; + for (int j = 1; j <= FD_STENCIL_MAX; j++) + dst[boundary_stride * j] = dst[-boundary_stride * j]; dst += dst_stride; } -- cgit v1.2.3