diff options
author | Anton Khirnov <anton@khirnov.net> | 2018-08-07 16:21:19 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2018-08-07 16:21:19 +0200 |
commit | 00df82df70cb8720d4d81e9ad60268b6e5a4bcbe (patch) | |
tree | 6fcf99ada6f38982e23a54e69829cff21232880a | |
parent | d7fed70887996c69a77b91d368f4f68565d36bae (diff) |
ell_relax: fix index name
-rw-r--r-- | ell_relax.c | 4 |
1 files 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; } |