Merge branch 'develop' into general-triclinic

# Conflicts:
#	src/atom.cpp
This commit is contained in:
Axel Kohlmeyer
2024-02-06 19:21:50 -05:00
356 changed files with 8055 additions and 5135 deletions

View File

@ -1584,8 +1584,23 @@ void ReadData::atoms()
void ReadData::velocities()
{
bigint nread = 0;
int nchunk, eof;
// cannot map velocities to atoms without atom IDs
if (!atom->tag_enable) {
if (me == 0) utils::logmesg(lmp, " skipping velocities without atom IDs ...\n");
while (nread < natoms) {
nchunk = MIN(natoms - nread, CHUNK);
eof = utils::read_lines_from_file(fp, nchunk, MAXLINE, buffer, me, world);
if (eof) error->all(FLERR, "Unexpected end of data file");
nread += nchunk;
}
return;
}
if (me == 0) utils::logmesg(lmp, " reading velocities ...\n");
int mapflag = 0;
@ -1595,8 +1610,6 @@ void ReadData::velocities()
atom->map_set();
}
bigint nread = 0;
while (nread < natoms) {
nchunk = MIN(natoms - nread, CHUNK);
eof = utils::read_lines_from_file(fp, nchunk, MAXLINE, buffer, me, world);