make compute com and gyration compatible with dynamic groups

This commit is contained in:
Axel Kohlmeyer
2016-05-24 16:41:41 -04:00
parent 3fe7cf47b6
commit b2ce582a40
2 changed files with 2 additions and 0 deletions

View File

@ -51,6 +51,7 @@ void ComputeCOM::init()
void ComputeCOM::compute_vector()
{
invoked_vector = update->ntimestep;
if (group->dynamic[igroup]) masstotal = group->mass(igroup);
group->xcm(igroup,masstotal,vector);
}