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

This commit is contained in:
sjplimp
2010-06-04 00:41:54 +00:00
parent 0eeb48a7b3
commit 06adf7f379
4 changed files with 165 additions and 164 deletions

View File

@ -35,18 +35,18 @@ ComputeDisplaceAtom::ComputeDisplaceAtom(LAMMPS *lmp, int narg, char **arg) :
peratom_flag = 1;
size_peratom_cols = 4;
// create a new fix store style
// id = compute-ID + store, fix group = compute group
// create a new fix store/state style
// id = compute-ID + store_state, fix group = compute group
int n = strlen(id) + strlen("_store") + 1;
int n = strlen(id) + strlen("_store_state") + 1;
id_fix = new char[n];
strcpy(id_fix,id);
strcat(id_fix,"_store");
strcat(id_fix,"_store_state");
char **newarg = new char*[7];
newarg[0] = id_fix;
newarg[1] = group->names[igroup];
newarg[2] = (char *) "store";
newarg[2] = (char *) "store/state";
newarg[3] = (char *) "0";
newarg[4] = (char *) "xu";
newarg[5] = (char *) "yu";