no need for static string buffers anymore

This commit is contained in:
Axel Kohlmeyer
2021-10-11 16:35:42 -04:00
parent 1f4c50037b
commit a45dbb6510

View File

@ -1356,14 +1356,11 @@ int FixACKS2ReaxFFKokkos<DeviceType>::bicgstab_solve()
if (comm->me == 0) {
if (omega == 0 || rho == 0) {
char str[128];
sprintf(str,"Fix acks2/reaxff/kk BiCGStab numerical breakdown, omega = %g, rho = %g",omega,rho);
error->warning(FLERR,str);
error->warning(FLERR,"Fix acks2/reaxff/kk BiCGStab numerical breakdown, omega = {:.8}, rho = {:.8}",
omega,rho);
} else if (i >= imax) {
char str[128];
sprintf(str,"Fix acks2/reaxff/kk BiCGStab convergence failed after %d iterations "
"at " BIGINT_FORMAT " step",i,update->ntimestep);
error->warning(FLERR,str);
error->warning(FLERR,"Fix acks2/reaxff/kk BiCGStab convergence failed after {} iterations "
"at step {}", i, update->ntimestep);
}
}