11 |
|
|
12 |
// handle command-line options |
// handle command-line options |
13 |
Diderot_Options_t *opts = Diderot_OptNew (); |
Diderot_Options_t *opts = Diderot_OptNew (); |
|
/* FIXME: register TimingFlg and NrrdOutputFlg */ |
|
14 |
Diderot_OptAddFlag (opts, "timing", "enable execution timing", &timingFlg); |
Diderot_OptAddFlag (opts, "timing", "enable execution timing", &timingFlg); |
15 |
Diderot_OptAddFlag (opts, "nrrd", "enable nrrd output", &printOutputFlg); |
Diderot_OptAddFlag (opts, "nrrd", "enable nrrd output", &printOutputFlg); |
16 |
RegisterGlobalOpts (wrld, opts); |
RegisterGlobalOpts (wrld, opts); |
29 |
double totalTime = airTime() - t0; |
double totalTime = airTime() - t0; |
30 |
|
|
31 |
if (wrld->verboseFlg) |
if (wrld->verboseFlg) |
32 |
fprintf (stderr, "done: %d updates, %d steps, in %f seconds\n", nUpdates, nSteps, totalTime); |
fprintf (stderr, "done: %d steps, in %f seconds\n", nSteps, totalTime); |
33 |
else if (TimingFlg) |
else if (timingFlg) |
34 |
printf ("usr=%f\n", totalTime); |
printf ("usr=%f\n", totalTime); |
35 |
|
|
36 |
// output the final strand states |
// output the final strand states |