Merge branch 'master' into varargs-log-error-functions
This commit is contained in:
@ -1225,7 +1225,7 @@ void ReadData::atoms()
|
||||
|
||||
while (nread < natoms) {
|
||||
nchunk = MIN(natoms-nread,CHUNK);
|
||||
eof = comm->read_lines_from_file(fp,nchunk,MAXLINE,buffer);
|
||||
eof = utils::read_lines_from_file(fp,nchunk,MAXLINE,buffer,me,world);
|
||||
if (eof) error->all(FLERR,"Unexpected end of data file");
|
||||
atom->data_atoms(nchunk,buffer,id_offset,mol_offset,toffset,shiftflag,shift);
|
||||
nread += nchunk;
|
||||
@ -1281,7 +1281,7 @@ void ReadData::velocities()
|
||||
|
||||
while (nread < natoms) {
|
||||
nchunk = MIN(natoms-nread,CHUNK);
|
||||
eof = comm->read_lines_from_file(fp,nchunk,MAXLINE,buffer);
|
||||
eof = utils::read_lines_from_file(fp,nchunk,MAXLINE,buffer,me,world);
|
||||
if (eof) error->all(FLERR,"Unexpected end of data file");
|
||||
atom->data_vels(nchunk,buffer,id_offset);
|
||||
nread += nchunk;
|
||||
@ -1323,7 +1323,7 @@ void ReadData::bonds(int firstpass)
|
||||
|
||||
while (nread < nbonds) {
|
||||
nchunk = MIN(nbonds-nread,CHUNK);
|
||||
eof = comm->read_lines_from_file(fp,nchunk,MAXLINE,buffer);
|
||||
eof = utils::read_lines_from_file(fp,nchunk,MAXLINE,buffer,me,world);
|
||||
if (eof) error->all(FLERR,"Unexpected end of data file");
|
||||
atom->data_bonds(nchunk,buffer,count,id_offset,boffset);
|
||||
nread += nchunk;
|
||||
@ -1397,7 +1397,7 @@ void ReadData::angles(int firstpass)
|
||||
|
||||
while (nread < nangles) {
|
||||
nchunk = MIN(nangles-nread,CHUNK);
|
||||
eof = comm->read_lines_from_file(fp,nchunk,MAXLINE,buffer);
|
||||
eof = utils::read_lines_from_file(fp,nchunk,MAXLINE,buffer,me,world);
|
||||
if (eof) error->all(FLERR,"Unexpected end of data file");
|
||||
atom->data_angles(nchunk,buffer,count,id_offset,aoffset);
|
||||
nread += nchunk;
|
||||
@ -1471,7 +1471,7 @@ void ReadData::dihedrals(int firstpass)
|
||||
|
||||
while (nread < ndihedrals) {
|
||||
nchunk = MIN(ndihedrals-nread,CHUNK);
|
||||
eof = comm->read_lines_from_file(fp,nchunk,MAXLINE,buffer);
|
||||
eof = utils::read_lines_from_file(fp,nchunk,MAXLINE,buffer,me,world);
|
||||
if (eof) error->all(FLERR,"Unexpected end of data file");
|
||||
atom->data_dihedrals(nchunk,buffer,count,id_offset,doffset);
|
||||
nread += nchunk;
|
||||
@ -1545,7 +1545,7 @@ void ReadData::impropers(int firstpass)
|
||||
|
||||
while (nread < nimpropers) {
|
||||
nchunk = MIN(nimpropers-nread,CHUNK);
|
||||
eof = comm->read_lines_from_file(fp,nchunk,MAXLINE,buffer);
|
||||
eof = utils::read_lines_from_file(fp,nchunk,MAXLINE,buffer,me,world);
|
||||
if (eof) error->all(FLERR,"Unexpected end of data file");
|
||||
atom->data_impropers(nchunk,buffer,count,id_offset,ioffset);
|
||||
nread += nchunk;
|
||||
@ -1612,7 +1612,7 @@ void ReadData::bonus(bigint nbonus, AtomVec *ptr, const char *type)
|
||||
|
||||
while (nread < natoms) {
|
||||
nchunk = MIN(natoms-nread,CHUNK);
|
||||
eof = comm->read_lines_from_file(fp,nchunk,MAXLINE,buffer);
|
||||
eof = utils::read_lines_from_file(fp,nchunk,MAXLINE,buffer,me,world);
|
||||
if (eof) error->all(FLERR,"Unexpected end of data file");
|
||||
atom->data_bonus(nchunk,buffer,ptr,id_offset);
|
||||
nread += nchunk;
|
||||
@ -1738,7 +1738,7 @@ void ReadData::mass()
|
||||
char *next;
|
||||
char *buf = new char[ntypes*MAXLINE];
|
||||
|
||||
int eof = comm->read_lines_from_file(fp,ntypes,MAXLINE,buf);
|
||||
int eof = utils::read_lines_from_file(fp,ntypes,MAXLINE,buf,me,world);
|
||||
if (eof) error->all(FLERR,"Unexpected end of data file");
|
||||
|
||||
char *original = buf;
|
||||
@ -1758,7 +1758,7 @@ void ReadData::paircoeffs()
|
||||
char *next;
|
||||
char *buf = new char[ntypes*MAXLINE];
|
||||
|
||||
int eof = comm->read_lines_from_file(fp,ntypes,MAXLINE,buf);
|
||||
int eof = utils::read_lines_from_file(fp,ntypes,MAXLINE,buf,me,world);
|
||||
if (eof) error->all(FLERR,"Unexpected end of data file");
|
||||
|
||||
char *original = buf;
|
||||
@ -1784,7 +1784,7 @@ void ReadData::pairIJcoeffs()
|
||||
int nsq = ntypes * (ntypes+1) / 2;
|
||||
char *buf = new char[nsq * MAXLINE];
|
||||
|
||||
int eof = comm->read_lines_from_file(fp,nsq,MAXLINE,buf);
|
||||
int eof = utils::read_lines_from_file(fp,nsq,MAXLINE,buf,me,world);
|
||||
if (eof) error->all(FLERR,"Unexpected end of data file");
|
||||
|
||||
char *original = buf;
|
||||
@ -1810,7 +1810,7 @@ void ReadData::bondcoeffs()
|
||||
char *next;
|
||||
char *buf = new char[nbondtypes*MAXLINE];
|
||||
|
||||
int eof = comm->read_lines_from_file(fp,nbondtypes,MAXLINE,buf);
|
||||
int eof = utils::read_lines_from_file(fp,nbondtypes,MAXLINE,buf,me,world);
|
||||
if (eof) error->all(FLERR,"Unexpected end of data file");
|
||||
|
||||
char *original = buf;
|
||||
@ -1835,7 +1835,7 @@ void ReadData::anglecoeffs(int which)
|
||||
char *next;
|
||||
char *buf = new char[nangletypes*MAXLINE];
|
||||
|
||||
int eof = comm->read_lines_from_file(fp,nangletypes,MAXLINE,buf);
|
||||
int eof = utils::read_lines_from_file(fp,nangletypes,MAXLINE,buf,me,world);
|
||||
if (eof) error->all(FLERR,"Unexpected end of data file");
|
||||
|
||||
char *original = buf;
|
||||
@ -1861,7 +1861,7 @@ void ReadData::dihedralcoeffs(int which)
|
||||
char *next;
|
||||
char *buf = new char[ndihedraltypes*MAXLINE];
|
||||
|
||||
int eof = comm->read_lines_from_file(fp,ndihedraltypes,MAXLINE,buf);
|
||||
int eof = utils::read_lines_from_file(fp,ndihedraltypes,MAXLINE,buf,me,world);
|
||||
if (eof) error->all(FLERR,"Unexpected end of data file");
|
||||
|
||||
char *original = buf;
|
||||
@ -1891,7 +1891,7 @@ void ReadData::impropercoeffs(int which)
|
||||
char *next;
|
||||
char *buf = new char[nimpropertypes*MAXLINE];
|
||||
|
||||
int eof = comm->read_lines_from_file(fp,nimpropertypes,MAXLINE,buf);
|
||||
int eof = utils::read_lines_from_file(fp,nimpropertypes,MAXLINE,buf,me,world);
|
||||
if (eof) error->all(FLERR,"Unexpected end of data file");
|
||||
|
||||
char *original = buf;
|
||||
@ -1921,7 +1921,7 @@ void ReadData::fix(int ifix, char *keyword)
|
||||
bigint nread = 0;
|
||||
while (nread < nline) {
|
||||
nchunk = MIN(nline-nread,CHUNK);
|
||||
eof = comm->read_lines_from_file(fp,nchunk,MAXLINE,buffer);
|
||||
eof = utils::read_lines_from_file(fp,nchunk,MAXLINE,buffer,me,world);
|
||||
if (eof) error->all(FLERR,"Unexpected end of data file");
|
||||
modify->fix[ifix]->read_data_section(keyword,nchunk,buffer,id_offset);
|
||||
nread += nchunk;
|
||||
|
||||
Reference in New Issue
Block a user