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

This commit is contained in:
sjplimp 2013-11-04 21:06:38 +00:00
parent 8777a53f1a
commit 661c056cdb
1 changed files with 2 additions and 2 deletions

View File

@ -99,10 +99,10 @@ int main(int narg, char **arg)
int natoms = lammps_get_natoms(ptr);
double *x = (double *) malloc(3*natoms*sizeof(double));
lammps_gather_atoms(lmp,"x",1,3,x);
lammps_gather_atoms(ptr,"x",1,3,x);
double epsilon = 0.1;
x[0] += epsilon;
lammps_scatter_atoms(lmp,"x",1,3,x);
lammps_scatter_atoms(ptr,"x",1,3,x);
free(x);
lammps_command(ptr,"run 1");