1
Fork 0
mirror of https://github.com/Steffo99/unimore-hpc-assignments.git synced 2025-02-16 17:13:57 +00:00

Add missing array initializer

This commit is contained in:
Steffo 2022-11-29 17:32:09 +01:00 committed by GitHub
parent ff5ffc7cba
commit 60078f8129
Signed by: github
GPG key ID: 4AEE18F83AFDEB23

View file

@ -111,7 +111,7 @@ __host__ int main(int argc, char **argv)
DATA_TYPE** A = new DATA_TYPE*[NX] {};
for(unsigned int x = 0; x < NX; x++)
{
A[x] = new DATA_TYPE[NY];
A[x] = new DATA_TYPE[NY] {};
}
DATA_TYPE* x = new DATA_TYPE[NY] {};