update for consistency with docs

This commit is contained in:
Axel Kohlmeyer
2025-05-15 23:16:31 -04:00
parent 5fd4d6bb87
commit 629ec2eabe
2 changed files with 3 additions and 3 deletions

View File

@ -174,13 +174,13 @@ void ReadData::command(int narg, char **arg)
addflag = VALUE; addflag = VALUE;
bigint offset = utils::bnumeric(FLERR, arg[iarg + 1], false, lmp); bigint offset = utils::bnumeric(FLERR, arg[iarg + 1], false, lmp);
if (offset > MAXTAGINT) if (offset > MAXTAGINT)
error->all(FLERR, "Read data add atomID offset {} is too big", offset); error->all(FLERR, "Read data add IDoffset {} is too big", offset);
id_offset = offset; id_offset = offset;
if (atom->molecule_flag) { if (atom->molecule_flag) {
offset = utils::bnumeric(FLERR, arg[iarg + 2], false, lmp); offset = utils::bnumeric(FLERR, arg[iarg + 2], false, lmp);
if (offset > MAXTAGINT) if (offset > MAXTAGINT)
error->all(FLERR, "Read data add molID offset {} is too big", offset); error->all(FLERR, "Read data add MOLoffset {} is too big", offset);
mol_offset = offset; mol_offset = offset;
iarg++; iarg++;
} }

View File

@ -211,7 +211,7 @@ void ResetAtomsMol::reset()
// if offset < 0 (default), reset it // if offset < 0 (default), reset it
// if group = all, offset = 0 // if group = all, offset = 0
// else offset = largest molID of non-group atoms // else offset = largest molecule ID of non-group atoms
if (offset < 0) { if (offset < 0) {
if (groupbit != 1) { if (groupbit != 1) {