Commit c6b41bb3 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Print more digits for the redshift and scale-factor to stdout.

parent 9277b927
......@@ -974,7 +974,7 @@ int main(int argc, char *argv[]) {
/* Legend */
if (myrank == 0) {
printf("# %6s %14s %14s %10s %14s %9s %12s %12s %12s %16s [%s] %6s\n",
printf("# %6s %14s %12s %12s %14s %9s %12s %12s %12s %16s [%s] %6s\n",
"Step", "Time", "Scale-factor", "Redshift", "Time-step", "Time-bins",
"Updates", "g-Updates", "s-Updates", "Wall-clock time",
clocks_getunit(), "Props");
......@@ -1144,18 +1144,19 @@ int main(int argc, char *argv[]) {
/* Print some information to the screen */
printf(
" %6d %14e %14e %10.5f %14e %4d %4d %12lld %12lld %12lld %21.3f %6d\n",
" %6d %14e %12.7f %12.7f %14e %4d %4d %12lld %12lld %12lld %21.3f "
"%6d\n",
e.step, e.time, e.cosmology->a, e.cosmology->z, e.time_step,
e.min_active_bin, e.max_active_bin, e.updates, e.g_updates, e.s_updates,
e.wallclock_time, e.step_props);
fflush(stdout);
fprintf(
e.file_timesteps,
" %6d %14e %14e %10.5f %14e %4d %4d %12lld %12lld %12lld %21.3f %6d\n",
e.step, e.time, e.cosmology->a, e.cosmology->z, e.time_step,
e.min_active_bin, e.max_active_bin, e.updates, e.g_updates, e.s_updates,
e.wallclock_time, e.step_props);
fprintf(e.file_timesteps,
" %6d %14e %12.7f %12.7f %14e %4d %4d %12lld %12lld %12lld %21.3f "
"%6d\n",
e.step, e.time, e.cosmology->a, e.cosmology->z, e.time_step,
e.min_active_bin, e.max_active_bin, e.updates, e.g_updates,
e.s_updates, e.wallclock_time, e.step_props);
fflush(e.file_timesteps);
}
......
......@@ -4778,19 +4778,21 @@ void engine_step(struct engine *e) {
/* Print some information to the screen */
printf(
" %6d %14e %14e %10.5f %14e %4d %4d %12lld %12lld %12lld %21.3f %6d\n",
" %6d %14e %12.7f %12.7f %14e %4d %4d %12lld %12lld %12lld %21.3f "
"%6d\n",
e->step, e->time, e->cosmology->a, e->cosmology->z, e->time_step,
e->min_active_bin, e->max_active_bin, e->updates, e->g_updates,
e->s_updates, e->wallclock_time, e->step_props);
fflush(stdout);
if (!e->restarting)
fprintf(e->file_timesteps,
" %6d %14e %14e %10.5f %14e %4d %4d %12lld %12lld %12lld %21.3f "
"%6d\n",
e->step, e->time, e->cosmology->a, e->cosmology->z, e->time_step,
e->min_active_bin, e->max_active_bin, e->updates, e->g_updates,
e->s_updates, e->wallclock_time, e->step_props);
fprintf(
e->file_timesteps,
" %6d %14e %12.7f %12.7f %14e %4d %4d %12lld %12lld %12lld %21.3f "
"%6d\n",
e->step, e->time, e->cosmology->a, e->cosmology->z, e->time_step,
e->min_active_bin, e->max_active_bin, e->updates, e->g_updates,
e->s_updates, e->wallclock_time, e->step_props);
fflush(e->file_timesteps);
}
......@@ -6270,7 +6272,7 @@ void engine_config(int restart, struct engine *e, struct swift_params *params,
engine_step_prop_snapshot, engine_step_prop_restarts);
fprintf(e->file_timesteps,
"# %6s %14s %14s %10s %14s %9s %12s %12s %12s %16s [%s] %6s\n",
"# %6s %14s %12s %12s %14s %9s %12s %12s %12s %16s [%s] %6s\n",
"Step", "Time", "Scale-factor", "Redshift", "Time-step",
"Time-bins", "Updates", "g-Updates", "s-Updates",
"Wall-clock time", clocks_getunit(), "Props");
......
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