Fix bug introduced by uninitialized moloffset

This commit is contained in:
Richard Berger
2020-11-23 18:36:28 -05:00
parent d59aba43e7
commit af0df870f4
2 changed files with 4 additions and 4 deletions

View File

@ -760,7 +760,7 @@ void Molecule::molecules(char *line)
int iatom = values.next_int() - 1;
if (iatom < 0 || iatom >= natoms) error->one(FLERR,"Invalid Molecules section in molecule file");
count[iatom]++;
molecule[iatom] = values.next_int();
molecule[iatom] = values.next_tagint();
// molecule[iatom] += moffset; // placeholder for possible molecule offset
}
} catch (TokenizerException &e) {