From 661c056cdb2e270a66c9709a578024ac9988aa3d Mon Sep 17 00:00:00 2001 From: sjplimp Date: Mon, 4 Nov 2013 21:06:38 +0000 Subject: [PATCH] git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@10965 f3b2605a-c512-4ea7-a41b-209d697bcdaa --- examples/COUPLE/simple/simple.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/COUPLE/simple/simple.c b/examples/COUPLE/simple/simple.c index 4b677892cc..91d499b674 100644 --- a/examples/COUPLE/simple/simple.c +++ b/examples/COUPLE/simple/simple.c @@ -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");