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:
parent
ff5ffc7cba
commit
60078f8129
1 changed files with 1 additions and 1 deletions
|
@ -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] {};
|
||||
|
|
Loading…
Add table
Reference in a new issue