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

This commit is contained in:
sjplimp
2015-04-15 13:40:10 +00:00
parent dce226f164
commit 08ce833afd
3 changed files with 8 additions and 6 deletions

View File

@ -475,12 +475,13 @@ void ComputeChunkAtom::init()
error->all(FLERR,"Compute chunk/atom ids once but nchunk is not once");
// create/destroy fix STORE for persistent chunk IDs as needed
// need to do this if idsflag = ONCE or locks will be used by other commands
// need to wait until init() so that fix ave/chunk command(s) are in place
// they increment lockcount if they lock this compute
// they increment lockcount if they lock this compute
// fixstore ID = compute-ID + COMPUTE_STORE, fix group = compute group
// fixstore initializes all values to 0.0
if (lockcount && !fixstore) {
if ((idsflag == ONCE || lockcount) && !fixstore) {
int n = strlen(id) + strlen("_COMPUTE_STORE") + 1;
id_fix = new char[n];
strcpy(id_fix,id);
@ -497,7 +498,7 @@ void ComputeChunkAtom::init()
delete [] newarg;
}
if (!lockcount && fixstore) {
if ((idsflag != ONCE && !lockcount) && fixstore) {
delete fixstore;
fixstore = NULL;
}