Merge branch 'master' into math_eigen
This commit is contained in:
@ -123,7 +123,7 @@ int BodyRoundedPolyhedron::nfaces(AtomVecBody::Bonus *bonus)
|
||||
double *BodyRoundedPolyhedron::faces(AtomVecBody::Bonus *bonus)
|
||||
{
|
||||
int nvertices = bonus->ivalue[0];
|
||||
if (nvertices == 1 || nvertices == 2) return NULL;
|
||||
if (nvertices == 1 || nvertices == 2) return nullptr;
|
||||
return bonus->dvalue+3*nsub(bonus)+2*nedges(bonus);
|
||||
}
|
||||
|
||||
@ -374,7 +374,7 @@ 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
|
||||
if buf is a null pointer, just return buffer size
|
||||
------------------------------------------------------------------------- */
|
||||
|
||||
int BodyRoundedPolyhedron::pack_data_body(tagint atomID, int ibonus, double *buf)
|
||||
|
||||
Reference in New Issue
Block a user