added atom styles with bonus data, also a few USER packages
This commit is contained in:
@ -568,7 +568,7 @@ void ReadData::command(int narg, char **arg)
|
||||
if (!avec_body)
|
||||
error->all(FLERR,"Invalid data file section: Bodies");
|
||||
if (atomflag == 0) error->all(FLERR,"Must read Atoms before Bodies");
|
||||
bodies(firstpass);
|
||||
bodies(firstpass,(AtomVec *) avec_body);
|
||||
|
||||
} else if (strcmp(keyword,"Masses") == 0) {
|
||||
if (firstpass) mass();
|
||||
@ -1686,7 +1686,7 @@ void ReadData::bonus(bigint nbonus, AtomVec *ptr, const char *type)
|
||||
if not firstpass, just read past data, but no processing of data
|
||||
------------------------------------------------------------------------- */
|
||||
|
||||
void ReadData::bodies(int firstpass)
|
||||
void ReadData::bodies(int firstpass, AtomVec *ptr)
|
||||
{
|
||||
int m,nchunk,nline,nmax,ninteger,ndouble,nword,ncount,onebody,tmp,rv;
|
||||
char *eof;
|
||||
@ -1770,7 +1770,7 @@ void ReadData::bodies(int firstpass)
|
||||
MPI_Bcast(&m,1,MPI_INT,0,world);
|
||||
MPI_Bcast(buffer,m,MPI_CHAR,0,world);
|
||||
|
||||
if (firstpass) atom->data_bodies(nchunk,buffer,avec_body,id_offset);
|
||||
if (firstpass) atom->data_bodies(nchunk,buffer,ptr,id_offset);
|
||||
nread += nchunk;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user