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

This commit is contained in:
sjplimp 2015-03-05 15:57:12 +00:00
parent 98c263cd00
commit e7e19bf0cb
1 changed files with 4 additions and 1 deletions

View File

@ -369,7 +369,10 @@ void Velocity::create(double t_desired, int seed)
rescale(t,t_desired);
// if bias_flag set, restore bias velocity to all atoms
// needed for bias = compute temp/partial to reset v dims to 0.0
// reapply needed for temperature computes where velocity
// creation has messed up the bias that was already removed:
// compute temp/partial needs to reset v dims to 0.0
// compute temp/cs needs to reset v to COM velocity of each C/S pair
if (bias_flag) {
temperature->reapply_bias_all();