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:
parent
c5c79e00c4
commit
ac1ec275d7
1 changed files with 1 additions and 2 deletions
|
@ -46,8 +46,7 @@ static void print_array(int nx,
|
||||||
|
|
||||||
/// Print all numbers in the array sequentially.
|
/// Print all numbers in the array sequentially.
|
||||||
// Cannot parallelize this: prints have to be sequential to make sense!
|
// 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, DATA_PRINTF_MODIFIER, y[i]);
|
||||||
}
|
}
|
||||||
fprintf(stderr, "\n");
|
fprintf(stderr, "\n");
|
||||||
|
|
Loading…
Reference in a new issue