fprintf(stderr,
"Energy files don't match, different number of energies:\n"
" %s: %d\n %s: %d\n",
- files[f - 1].c_str(), nresav, files[f].c_str(), fr->nre);
+ files[f - 1].c_str(),
+ nresav,
+ files[f].c_str(),
+ fr->nre);
fprintf(stderr,
"\nContinue conversion using only the first %d terms (n/y)?\n"
"(you should be sure that the energy terms match)\n",
{ "-error", FALSE, etBOOL, { &bError }, "Stop on errors in the file" }
};
- if (!parse_common_args(&argc, argv, 0, NFILE, fnm, asize(pa), pa, asize(desc), desc,
- asize(bugs), bugs, &oenv))
+ if (!parse_common_args(
+ &argc, argv, 0, NFILE, fnm, asize(pa), pa, asize(desc), desc, asize(bugs), bugs, &oenv))
{
return 0;
}
if (debug)
{
- fprintf(debug, "fr->step %s, fr->t %.4f, fro->step %s fro->t %.4f, w %s\n",
- gmx_step_str(fr->step, buf), fr->t, gmx_step_str(fro->step, buf2), fro->t,
+ fprintf(debug,
+ "fr->step %s, fr->t %.4f, fro->step %s fro->t %.4f, w %s\n",
+ gmx_step_str(fr->step, buf),
+ fr->t,
+ gmx_step_str(fro->step, buf2),
+ fro->t,
gmx::boolToString(bWrite));
}
if (bNewOutput)
{
bNewOutput = FALSE;
- fprintf(stderr, "\nContinue writing frames from t=%g, step=%s\n", fro->t,
+ fprintf(stderr,
+ "\nContinue writing frames from t=%g, step=%s\n",
+ fro->t,
gmx_step_str(fro->step, buf));
}
"samples away.\n"
" Use g_energy -odh option to extract these "
"samples.\n",
- files[f].c_str(), size);
+ files[f].c_str(),
+ size);
warned_about_dh = TRUE;
break;
}
{
f--;
}
- printf("\nLast step written from %s: t %g, step %s\n", files[f].c_str(), last_t,
+ printf("\nLast step written from %s: t %g, step %s\n",
+ files[f].c_str(),
+ last_t,
gmx_step_str(laststep, buf));
lastfilestep = laststep;
}
else
{
- fprintf(stderr, "Last frame written was at step %s, time %f\n",
- gmx_step_str(fro->step, buf), fro->t);
+ fprintf(stderr, "Last frame written was at step %s, time %f\n", gmx_step_str(fro->step, buf), fro->t);
fprintf(stderr, "Wrote %d frames\n", noutfr);
}