apply the rigid body checks to some more example codes

This commit is contained in:
Axel Kohlmeyer
2017-06-05 16:30:30 -04:00
parent 90ca0852c7
commit 0034d2db35
3 changed files with 11 additions and 1 deletions

View File

@ -128,6 +128,9 @@ void FixTempBerendsen::init()
error->all(FLERR,"Temperature ID for fix temp/berendsen does not exist");
temperature = modify->compute[icompute];
if (modify->check_rigid_group_overlap(groupbit))
error->warning(FLERR,"Cannot thermostat atoms in rigid bodies");
if (temperature->tempbias) which = BIAS;
else which = NOBIAS;
}