remove TAGINT_FORMAT from ntopo styles

This commit is contained in:
Axel Kohlmeyer
2020-06-05 08:45:18 -04:00
parent 0ee1393955
commit d874e8a2be
12 changed files with 119 additions and 187 deletions

View File

@ -21,6 +21,7 @@
#include "thermo.h"
#include "memory.h"
#include "error.h"
#include "fmt/format.h"
using namespace LAMMPS_NS;
@ -62,17 +63,14 @@ void NTopoImproperPartial::build()
atom4 = atom->map(improper_atom4[i][m]);
if (atom1 == -1 || atom2 == -1 || atom3 == -1 || atom4 == -1) {
nmissing++;
if (lostbond == Thermo::ERROR) {
char str[128];
sprintf(str,"Improper atoms "
TAGINT_FORMAT " " TAGINT_FORMAT " "
TAGINT_FORMAT " " TAGINT_FORMAT
" missing on proc %d at step " BIGINT_FORMAT,
improper_atom1[i][m],improper_atom2[i][m],
improper_atom3[i][m],improper_atom4[i][m],
me,update->ntimestep);
error->one(FLERR,str);
}
if (lostbond == Thermo::ERROR)
error->one(FLERR,fmt::format("Improper atoms {} {} {} {}"
" missing on proc {} at step {}",
improper_atom1[i][m],
improper_atom2[i][m],
improper_atom3[i][m],
improper_atom4[i][m],
me,update->ntimestep));
continue;
}
atom1 = domain->closest_image(i,atom1);