update parsers for bond topology data in data files

This commit is contained in:
Axel Kohlmeyer
2022-09-04 05:27:29 -04:00
parent ad8a931fe4
commit 3dc7b7e0b3
2 changed files with 181 additions and 98 deletions

View File

@ -2163,7 +2163,7 @@ void ReadData::typelabels(int mode)
int itype = utils::inumeric(FLERR, values[0], false, lmp);
if ((itype < 1) || (itype > lntypes))
error->all(FLERR, "Invalid type {} in section: {} Type Labels: {}", labeltypes[mode], buf);
(*labels)[itype - 1] = values[1];
(*labels_map)[values[1]] = itype;
buf = next + 1;