USER-MANIFOLD: Use TAGINT_FORMAT where appropriate

This commit is contained in:
Risto Toijala 2019-04-04 15:35:44 +03:00
parent da77dde04d
commit 6679469220
1 changed files with 4 additions and 2 deletions

View File

@ -559,7 +559,8 @@ void FixNVEManifoldRattle::rattle_manifold_x(double *x, double *v,
if (iters >= max_iter && res > tolerance) {
char msg[2048];
sprintf(msg,"Failed to constrain atom %d (x = (%f, %f, %f)! res = %e, iters = %d\n",
sprintf(msg,"Failed to constrain atom " TAGINT_FORMAT
" (x = (%f, %f, %f)! res = %e, iters = %d\n",
tagi, x[0], x[1], x[2], res, iters);
error->one(FLERR,msg);
}
@ -652,7 +653,8 @@ void FixNVEManifoldRattle::rattle_manifold_v(double *v, double *f,
if (iters >= max_iter && res >= tolerance) {
char msg[2048];
sprintf(msg,"Failed to constrain atom %d (x = (%f, %f, %f)! res = %e, iters = %d\n",
sprintf(msg,"Failed to constrain atom " TAGINT_FORMAT
" (x = (%f, %f, %f)! res = %e, iters = %d\n",
tagi, x[0], x[1], x[2], res, iters);
error->all(FLERR,msg);
}