From c96a67bcf7d606b7dca89da2e89e3e1d6ad979b1 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Tue, 29 Nov 2022 17:28:17 +0100 Subject: [PATCH] Again, use better variable names --- atax/atax.cu | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/atax/atax.cu b/atax/atax.cu index 3c8458b..6b5def9 100644 --- a/atax/atax.cu +++ b/atax/atax.cu @@ -109,9 +109,9 @@ __host__ int main(int argc, char **argv) { // A[NY][NX] DATA_TYPE** A = new DATA_TYPE*[NX] {}; - for(unsigned int i = 0; i < NX; i++) + for(unsigned int x = 0; x < NX; x++) { - A[i] = new DATA_TYPE[NY]; + A[x] = new DATA_TYPE[NY]; } DATA_TYPE* x = new DATA_TYPE[NY] {};