1
Fork 0
mirror of https://github.com/Steffo99/unimore-hpc-assignments.git synced 2024-11-22 08:04:25 +00:00

Again, use better variable names

This commit is contained in:
Steffo 2022-11-29 17:28:17 +01:00 committed by GitHub
parent ba45dfd61c
commit c96a67bcf7
Signed by: github
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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] {};