|
|
|
|
@ -1305,8 +1305,8 @@ void ReadData::atoms()
|
|
|
|
|
eof = utils::read_lines_from_file(fp,nchunk,MAXLINE,buffer,me,world);
|
|
|
|
|
if (eof) error->all(FLERR,"Unexpected end of data file");
|
|
|
|
|
if (tlabelflag && !lmap->is_complete(Atom::ATOM))
|
|
|
|
|
error->all(FLERR,"Label map is incomplete. "
|
|
|
|
|
"All types must be assigned a unique type label.");
|
|
|
|
|
error->all(FLERR,"Label map is incomplete: "
|
|
|
|
|
"all types must be assigned a unique type label");
|
|
|
|
|
atom->data_atoms(nchunk,buffer,id_offset,mol_offset,toffset,
|
|
|
|
|
shiftflag,shift,tlabelflag,lmap->lmap2lmap.atom);
|
|
|
|
|
nread += nchunk;
|
|
|
|
|
@ -1423,8 +1423,8 @@ void ReadData::bonds(int firstpass)
|
|
|
|
|
eof = utils::read_lines_from_file(fp,nchunk,MAXLINE,buffer,me,world);
|
|
|
|
|
if (eof) error->all(FLERR,"Unexpected end of data file");
|
|
|
|
|
if (blabelflag && !lmap->is_complete(Atom::BOND))
|
|
|
|
|
error->all(FLERR,"Label map is incomplete. "
|
|
|
|
|
"All types must be assigned a unique type label.");
|
|
|
|
|
error->all(FLERR,"Label map is incomplete: "
|
|
|
|
|
"all types must be assigned a unique type label");
|
|
|
|
|
atom->data_bonds(nchunk,buffer,count,id_offset,boffset,
|
|
|
|
|
blabelflag,lmap->lmap2lmap.bond);
|
|
|
|
|
nread += nchunk;
|
|
|
|
|
@ -1501,8 +1501,8 @@ void ReadData::angles(int firstpass)
|
|
|
|
|
eof = utils::read_lines_from_file(fp,nchunk,MAXLINE,buffer,me,world);
|
|
|
|
|
if (eof) error->all(FLERR,"Unexpected end of data file");
|
|
|
|
|
if (alabelflag && !lmap->is_complete(Atom::ANGLE))
|
|
|
|
|
error->all(FLERR,"Label map is incomplete. "
|
|
|
|
|
"All types must be assigned a unique type label.");
|
|
|
|
|
error->all(FLERR,"Label map is incomplete: "
|
|
|
|
|
"all types must be assigned a unique type label");
|
|
|
|
|
atom->data_angles(nchunk,buffer,count,id_offset,aoffset,
|
|
|
|
|
alabelflag,lmap->lmap2lmap.angle);
|
|
|
|
|
nread += nchunk;
|
|
|
|
|
@ -1579,8 +1579,8 @@ void ReadData::dihedrals(int firstpass)
|
|
|
|
|
eof = utils::read_lines_from_file(fp,nchunk,MAXLINE,buffer,me,world);
|
|
|
|
|
if (eof) error->all(FLERR,"Unexpected end of data file");
|
|
|
|
|
if (dlabelflag && !lmap->is_complete(Atom::DIHEDRAL))
|
|
|
|
|
error->all(FLERR,"Label map is incomplete. "
|
|
|
|
|
"All types must be assigned a unique type label.");
|
|
|
|
|
error->all(FLERR,"Label map is incomplete: "
|
|
|
|
|
"all types must be assigned a unique type label");
|
|
|
|
|
atom->data_dihedrals(nchunk,buffer,count,id_offset,doffset,
|
|
|
|
|
dlabelflag,lmap->lmap2lmap.dihedral);
|
|
|
|
|
nread += nchunk;
|
|
|
|
|
@ -1657,8 +1657,8 @@ void ReadData::impropers(int firstpass)
|
|
|
|
|
eof = utils::read_lines_from_file(fp,nchunk,MAXLINE,buffer,me,world);
|
|
|
|
|
if (eof) error->all(FLERR,"Unexpected end of data file");
|
|
|
|
|
if (ilabelflag && !lmap->is_complete(Atom::IMPROPER))
|
|
|
|
|
error->all(FLERR,"Label map is incomplete. "
|
|
|
|
|
"All types must be assigned a unique type label.");
|
|
|
|
|
error->all(FLERR,"Label map is incomplete: "
|
|
|
|
|
"all types must be assigned a unique type label");
|
|
|
|
|
atom->data_impropers(nchunk,buffer,count,id_offset,ioffset,
|
|
|
|
|
ilabelflag,lmap->lmap2lmap.improper);
|
|
|
|
|
nread += nchunk;
|
|
|
|
|
@ -1854,8 +1854,8 @@ void ReadData::mass()
|
|
|
|
|
int eof = utils::read_lines_from_file(fp,ntypes,MAXLINE,buf,me,world);
|
|
|
|
|
if (eof) error->all(FLERR,"Unexpected end of data file");
|
|
|
|
|
if (tlabelflag && !lmap->is_complete(Atom::ATOM))
|
|
|
|
|
error->all(FLERR,"Label map is incomplete. "
|
|
|
|
|
"All types must be assigned a unique type label.");
|
|
|
|
|
error->all(FLERR,"Label map is incomplete: "
|
|
|
|
|
"all types must be assigned a unique type label");
|
|
|
|
|
|
|
|
|
|
char *original = buf;
|
|
|
|
|
for (int i = 0; i < ntypes; i++) {
|
|
|
|
|
@ -1878,8 +1878,8 @@ void ReadData::paircoeffs()
|
|
|
|
|
if (eof) error->all(FLERR,"Unexpected end of data file");
|
|
|
|
|
|
|
|
|
|
if (tlabelflag && !lmap->is_complete(Atom::ATOM))
|
|
|
|
|
error->all(FLERR,"Label map is incomplete. "
|
|
|
|
|
"All types must be assigned a unique type label.");
|
|
|
|
|
error->all(FLERR,"Label map is incomplete: "
|
|
|
|
|
"all types must be assigned a unique type label");
|
|
|
|
|
|
|
|
|
|
char *original = buf;
|
|
|
|
|
for (int i = 0; i < ntypes; i++) {
|
|
|
|
|
@ -1908,8 +1908,8 @@ void ReadData::pairIJcoeffs()
|
|
|
|
|
if (eof) error->all(FLERR,"Unexpected end of data file");
|
|
|
|
|
|
|
|
|
|
if (tlabelflag && !lmap->is_complete(Atom::ATOM))
|
|
|
|
|
error->all(FLERR,"Label map is incomplete. "
|
|
|
|
|
"All types must be assigned a unique type label.");
|
|
|
|
|
error->all(FLERR,"Label map is incomplete: "
|
|
|
|
|
"all types must be assigned a unique type label");
|
|
|
|
|
|
|
|
|
|
char *original = buf;
|
|
|
|
|
for (i = 0; i < ntypes; i++)
|
|
|
|
|
@ -1938,8 +1938,8 @@ void ReadData::bondcoeffs()
|
|
|
|
|
if (eof) error->all(FLERR,"Unexpected end of data file");
|
|
|
|
|
|
|
|
|
|
if (blabelflag && !lmap->is_complete(Atom::BOND))
|
|
|
|
|
error->all(FLERR,"Label map is incomplete. "
|
|
|
|
|
"All types must be assigned a unique type label.");
|
|
|
|
|
error->all(FLERR,"Label map is incomplete: "
|
|
|
|
|
"all types must be assigned a unique type label");
|
|
|
|
|
|
|
|
|
|
char *original = buf;
|
|
|
|
|
for (int i = 0; i < nbondtypes; i++) {
|
|
|
|
|
@ -1967,8 +1967,8 @@ void ReadData::anglecoeffs(int which)
|
|
|
|
|
if (eof) error->all(FLERR,"Unexpected end of data file");
|
|
|
|
|
|
|
|
|
|
if (alabelflag && !lmap->is_complete(Atom::ANGLE))
|
|
|
|
|
error->all(FLERR,"Label map is incomplete. "
|
|
|
|
|
"All types must be assigned a unique type label.");
|
|
|
|
|
error->all(FLERR,"Label map is incomplete: "
|
|
|
|
|
"all types must be assigned a unique type label");
|
|
|
|
|
|
|
|
|
|
char *original = buf;
|
|
|
|
|
for (int i = 0; i < nangletypes; i++) {
|
|
|
|
|
@ -2000,8 +2000,8 @@ void ReadData::dihedralcoeffs(int which)
|
|
|
|
|
if (eof) error->all(FLERR,"Unexpected end of data file");
|
|
|
|
|
|
|
|
|
|
if (dlabelflag && !lmap->is_complete(Atom::DIHEDRAL))
|
|
|
|
|
error->all(FLERR,"Label map is incomplete. "
|
|
|
|
|
"All types must be assigned a unique type label.");
|
|
|
|
|
error->all(FLERR,"Label map is incomplete: "
|
|
|
|
|
"all types must be assigned a unique type label");
|
|
|
|
|
|
|
|
|
|
char *original = buf;
|
|
|
|
|
for (int i = 0; i < ndihedraltypes; i++) {
|
|
|
|
|
@ -2040,8 +2040,8 @@ void ReadData::impropercoeffs(int which)
|
|
|
|
|
if (eof) error->all(FLERR,"Unexpected end of data file");
|
|
|
|
|
|
|
|
|
|
if (ilabelflag && !lmap->is_complete(Atom::IMPROPER))
|
|
|
|
|
error->all(FLERR,"Label map is incomplete. "
|
|
|
|
|
"All types must be assigned a unique type label.");
|
|
|
|
|
error->all(FLERR,"Label map is incomplete: "
|
|
|
|
|
"all types must be assigned a unique type label");
|
|
|
|
|
|
|
|
|
|
char *original = buf;
|
|
|
|
|
for (int i = 0; i < nimpropertypes; i++) {
|
|
|
|
|
|