Commit eeafe65a authored by lhausamm's avatar lhausamm
Browse files

Write dependency with option -x now (moved the writing to just before printing first step message)

parent b24ca8c5
......@@ -189,7 +189,7 @@ int main(int argc, char *argv[]) {
int c;
char parameters[200] = "acCdDef:FgGhMn:P:sSt:Tv:y:Y:";
#ifdef SWIFT_DEBUG_CHECKS
strcat(parameters, "x:");
strcat(parameters, "x");
#endif
while ((c = getopt(argc, argv, parameters)) != -1)
switch (c) {
......@@ -703,6 +703,11 @@ int main(int argc, char *argv[]) {
engine_dump_snapshot(&e);
engine_print_stats(&e);
#ifdef SWIFT_DEBUG_CHECKS
if (write_dependencies)
scheduler_write_dependency(&e.sched);
#endif
/* Legend */
if (myrank == 0)
printf("# %6s %14s %14s %10s %10s %10s %16s [%s]\n", "Step", "Time",
......@@ -712,11 +717,6 @@ int main(int argc, char *argv[]) {
/* File for the timers */
if (with_verbose_timers) timers_open_file(myrank);
#ifdef SWIFT_DEBUG_CHECKS
if (write_dependencies)
scheduler_write_dependency(&e.sched);
#endif
/* Main simulation loop */
for (int j = 0; !engine_is_done(&e) && e.step - 1 != nsteps; j++) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment