1
Fork 0
mirror of https://github.com/Steffo99/unimore-hpc-assignments.git synced 2024-11-29 11:34:21 +00:00

print_array: Format for loop

This commit is contained in:
Steffo 2022-11-17 01:56:52 +01:00
parent c5c79e00c4
commit ac1ec275d7
Signed by: steffo
GPG key ID: 6965406171929D01

View file

@ -46,8 +46,7 @@ static void print_array(int nx,
/// Print all numbers in the array sequentially.
// Cannot parallelize this: prints have to be sequential to make sense!
for (i = 0; i < nx; i++)
{
for (i = 0; i < nx; i++) {
fprintf(stderr, DATA_PRINTF_MODIFIER, y[i]);
}
fprintf(stderr, "\n");