whitespace fixes
This commit is contained in:
@ -188,7 +188,7 @@ int BodyRoundedPolyhedron::unpack_border_body(AtomVecBody::Bonus *bonus, double
|
||||
------------------------------------------------------------------------- */
|
||||
|
||||
void BodyRoundedPolyhedron::data_body(int ibonus, int ninteger, int ndouble,
|
||||
int *ifile, double *dfile)
|
||||
int *ifile, double *dfile)
|
||||
{
|
||||
AtomVecBody::Bonus *bonus = &avec->bonus[ibonus];
|
||||
|
||||
@ -220,7 +220,7 @@ void BodyRoundedPolyhedron::data_body(int ibonus, int ninteger, int ndouble,
|
||||
|
||||
if (ndouble != nentries)
|
||||
error->one(FLERR,"Incorrect # of floating-point values in "
|
||||
"Bodies section of data file");
|
||||
"Bodies section of data file");
|
||||
|
||||
bonus->ninteger = 3;
|
||||
bonus->ivalue = icp->get(bonus->iindex);
|
||||
@ -356,7 +356,7 @@ void BodyRoundedPolyhedron::data_body(int ibonus, int ninteger, int ndouble,
|
||||
|
||||
for (i = 0; i < nfac; i++) {
|
||||
for (m = 0; m < MAX_FACE_SIZE; m++)
|
||||
bonus->dvalue[k+m] = dfile[j+m];
|
||||
bonus->dvalue[k+m] = dfile[j+m];
|
||||
k += MAX_FACE_SIZE;
|
||||
j += MAX_FACE_SIZE;
|
||||
}
|
||||
@ -439,14 +439,14 @@ int BodyRoundedPolyhedron::pack_data_body(tagint atomID, int ibonus, double *buf
|
||||
if (nsub < 3) j += 2;
|
||||
else {
|
||||
for (i = 0; i < nedge; i++) {
|
||||
buf[m++] = static_cast<int> (dvalue[j++]);
|
||||
buf[m++] = static_cast<int> (dvalue[j++]);
|
||||
buf[m++] = static_cast<int> (dvalue[j++]);
|
||||
buf[m++] = static_cast<int> (dvalue[j++]);
|
||||
}
|
||||
for (i = 0; i < nface; i++) {
|
||||
buf[m++] = static_cast<int> (dvalue[j++]);
|
||||
buf[m++] = static_cast<int> (dvalue[j++]);
|
||||
buf[m++] = static_cast<int> (dvalue[j++]);
|
||||
buf[m++] = static_cast<int> (dvalue[j++]);
|
||||
buf[m++] = static_cast<int> (dvalue[j++]);
|
||||
buf[m++] = static_cast<int> (dvalue[j++]);
|
||||
buf[m++] = static_cast<int> (dvalue[j++]);
|
||||
buf[m++] = static_cast<int> (dvalue[j++]);
|
||||
}
|
||||
}
|
||||
|
||||
@ -502,8 +502,8 @@ int BodyRoundedPolyhedron::write_data_body(FILE *fp, double *buf)
|
||||
fmt::print(fp,"{} {}\n",static_cast<int> (buf[m]),static_cast<int> (buf[m+1]));
|
||||
for (int i = 0; i < nface; i++, m+=4)
|
||||
fmt::print(fp,"{} {} {} {}\n",
|
||||
static_cast<int> (buf[m]),static_cast<int> (buf[m+1]),
|
||||
static_cast<int> (buf[m+2]),static_cast<int> (buf[m+3]));
|
||||
static_cast<int> (buf[m]),static_cast<int> (buf[m+1]),
|
||||
static_cast<int> (buf[m+2]),static_cast<int> (buf[m+3]));
|
||||
}
|
||||
|
||||
// rounded diameter
|
||||
|
||||
Reference in New Issue
Block a user