git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@3622 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -35,18 +35,18 @@ ComputeDisplaceAtom::ComputeDisplaceAtom(LAMMPS *lmp, int narg, char **arg) :
|
||||
peratom_flag = 1;
|
||||
size_peratom_cols = 4;
|
||||
|
||||
// create a new fix coord/original style
|
||||
// id = compute-ID + coord_original, fix group = compute group
|
||||
// create a new fix store/coord style
|
||||
// id = compute-ID + store_coord, fix group = compute group
|
||||
|
||||
int n = strlen(id) + strlen("_coord_original") + 1;
|
||||
int n = strlen(id) + strlen("_store_coord") + 1;
|
||||
id_fix = new char[n];
|
||||
strcpy(id_fix,id);
|
||||
strcat(id_fix,"_coord_original");
|
||||
strcat(id_fix,"_store_coord");
|
||||
|
||||
char **newarg = new char*[3];
|
||||
newarg[0] = id_fix;
|
||||
newarg[1] = group->names[igroup];
|
||||
newarg[2] = (char *) "coord/original";
|
||||
newarg[2] = (char *) "store/coord";
|
||||
modify->add_fix(3,newarg);
|
||||
delete [] newarg;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user