Fix heat output order

This commit is contained in:
Rodrigo Arias 2024-04-19 15:18:32 +02:00
parent 80a47f1ec9
commit 6e2058edce
2 changed files with 6 additions and 6 deletions

View File

@ -80,12 +80,12 @@ int main(int argc, char **argv)
#endif #endif
fprintf(stderr, "%14s %14s %14s %8s %8s %8s %8s %8s %8s\n", fprintf(stderr, "%14s %14s %14s %8s %8s %8s %8s %8s %8s\n",
"throughput", "time", "error", "time", "throughput", "error",
"rows", "cols", "rows", "cols",
"rbs", "cbs", "threads", "rbs", "cbs", "threads",
"steps"); "steps");
fprintf(stdout, "%14e %14e %14e %8ld %8ld %8d %8d %8d %8d\n", fprintf(stdout, "%14e %14e %14e %8ld %8ld %8d %8d %8d %8d\n",
throughput, end-start, residual, end-start, throughput, residual,
conf.rows, conf.cols, conf.rows, conf.cols,
conf.rbs, conf.cbs, threads, conf.rbs, conf.cbs, threads,
conf.convergenceTimesteps); conf.convergenceTimesteps);

View File

@ -32,10 +32,10 @@ int main(int argc, char **argv)
long total_elem = iter_elem * niter; long total_elem = iter_elem * niter;
double throughput = total_elem / delta_time; double throughput = total_elem / delta_time;
fprintf(stderr, "%14s %14s %14s %8s %8s %8s %8s %8s\n", // fprintf(stderr, "%14s %14s %14s %8s %8s %8s %8s %8s\n",
"time", "updates/s", "rel. error", // "time", "updates/s", "rel. error",
"rows", "cols", // "rows", "cols",
"rbs", "cbs", "iters"); // "rbs", "cbs", "iters");
fprintf(stdout, "%14e %14e %14e %8ld %8ld %8d %8d %8ld\n", fprintf(stdout, "%14e %14e %14e %8ld %8ld %8d %8d %8ld\n",
delta_time, throughput, residual, delta_time, throughput, residual,
conf.rows, conf.cols, conf.rows, conf.cols,