simplify code by appling varargs messages and warnings

This commit is contained in:
Axel Kohlmeyer
2021-05-05 18:19:12 -04:00
parent 8fd0595f1b
commit 22e93468d6
48 changed files with 162 additions and 181 deletions

View File

@ -336,7 +336,7 @@ double KSpace::estimate_table_accuracy(double q2_over_sqrt, double spr)
int nctb = force->pair->ncoultablebits;
if (comm->me == 0) {
if (nctb)
error->message(FLERR,fmt::format(" using {}-bit tables for long-range coulomb",nctb));
error->message(FLERR," using {}-bit tables for long-range coulomb",nctb);
else
error->message(FLERR," using polynomial approximation for long-range coulomb");
}