git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@11887 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -217,6 +217,23 @@ void Modify::init()
|
||||
}
|
||||
addstep_compute_all(update->ntimestep);
|
||||
|
||||
// error if any fix or compute is using a dynamic group when not allowed
|
||||
|
||||
for (i = 0; i < nfix; i++)
|
||||
if (!fix[i]->dynamic_group_allow && group->dynamic[fix[i]->igroup]) {
|
||||
char str[128];
|
||||
sprintf(str,"Fix %s does not allow use of dynamic group",fix[i]->id);
|
||||
error->all(FLERR,str);
|
||||
}
|
||||
|
||||
for (i = 0; i < ncompute; i++)
|
||||
if (!compute[i]->dynamic_group_allow &&
|
||||
group->dynamic[compute[i]->igroup]) {
|
||||
char str[128];
|
||||
sprintf(str,"Compute %s does not allow use of dynamic group",fix[i]->id);
|
||||
error->all(FLERR,str);
|
||||
}
|
||||
|
||||
// warn if any particle is time integrated more than once
|
||||
|
||||
int nlocal = atom->nlocal;
|
||||
|
||||
Reference in New Issue
Block a user