Merge pull request #2727 from akohlmey/refactor-read-lines-from-file
Move "read_lines_from_file" utility function from Comm class to utils namespace
This commit is contained in:
@ -2302,7 +2302,7 @@ void FixRigid::readfile(int which, double *vec,
|
||||
int nread = 0;
|
||||
while (nread < nlines) {
|
||||
nchunk = MIN(nlines-nread,CHUNK);
|
||||
eofflag = comm->read_lines_from_file(fp,nchunk,MAXLINE,buffer);
|
||||
eofflag = utils::read_lines_from_file(fp,nchunk,MAXLINE,buffer,me,world);
|
||||
if (eofflag) error->all(FLERR,"Unexpected end of fix rigid file");
|
||||
|
||||
buf = buffer;
|
||||
|
||||
Reference in New Issue
Block a user