add body support, change bonus buf to 1d so can be variable length

This commit is contained in:
Steve Plimpton
2020-07-07 11:34:30 -06:00
parent 7918919d30
commit 955bff7c4e
20 changed files with 234 additions and 138 deletions

View File

@ -378,6 +378,26 @@ void BodyRoundedPolyhedron::data_body(int ibonus, int ninteger, int ndouble,
}
}
/* ----------------------------------------------------------------------
pack data struct for one body into buf for writing to data file
if buf is NULL, just return buffer size
------------------------------------------------------------------------- */
int BodyRoundedPolyhedron::pack_data_body(tagint atomID, int ibonus, double *buf)
{
AtomVecBody::Bonus *bonus = &avec->bonus[ibonus];
return 0;
}
/* ----------------------------------------------------------------------
write info for one body to data file
------------------------------------------------------------------------- */
int BodyRoundedPolyhedron::write_data_body(FILE *fp, double *buf)
{
return 0;
}
/* ----------------------------------------------------------------------
return radius of body particle defined by ifile/dfile params
params are ordered as in data file