git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@3598 f3b2605a-c512-4ea7-a41b-209d697bcdaa

This commit is contained in:
sjplimp
2009-12-21 21:21:22 +00:00
parent 87ba3c6eff
commit 4900c3d0c0
14 changed files with 57 additions and 66 deletions

View File

@ -229,18 +229,18 @@ int DumpXTC::pack()
/* ---------------------------------------------------------------------- */
void DumpXTC::write_data(int n, double *buf)
void DumpXTC::write_data(int n, double *mybuf)
{
float *xyz;
int j,tag;
int m = 0;
for (int i = 0; i < n; i++) {
tag = static_cast<int> (buf[m]) - 1;
tag = static_cast<int> (mybuf[m]) - 1;
j = 3*tag;
coords[j++] = buf[m+1];
coords[j++] = buf[m+2];
coords[j] = buf[m+3];
coords[j++] = mybuf[m+1];
coords[j++] = mybuf[m+2];
coords[j] = mybuf[m+3];
m += size_one;
}