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

This commit is contained in:
sjplimp 2012-09-11 14:15:54 +00:00
parent edeec7b788
commit f06d06671f
2 changed files with 3 additions and 3 deletions

View File

@ -213,7 +213,7 @@ void BondHybrid::settings(int narg, char **arg)
while (i < narg) {
for (m = 0; m < nstyles; m++)
if (strcmp(arg[i],keywords[m]) == 0)
error->all(FLERR,"Bond style hybrid cannot use same pair style twice");
error->all(FLERR,"Bond style hybrid cannot use same bond style twice");
if (strcmp(arg[i],"hybrid") == 0)
error->all(FLERR,"Bond style hybrid cannot have hybrid as an argument");
if (strcmp(arg[i],"none") == 0)

View File

@ -498,11 +498,11 @@ void lammps_scatter_atoms(void *ptr, char *name,
else array = (int **) vptr;
int *dptr = (int *) data;
if (count == 1)
if (count == 1) {
for (i = 0; i < natoms; i++)
if ((m = lmp->atom->map(i+1)) >= 0)
vector[m] = dptr[i];
else
} else {
for (i = 0; i < natoms; i++)
if ((m = lmp->atom->map(i+1)) >= 0) {
offset = count*i;