update for consistency with docs
This commit is contained in:
@ -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++;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user