forked from lijiext/lammps
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@8764 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
parent
edeec7b788
commit
f06d06671f
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue