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

This commit is contained in:
sjplimp 2013-01-11 21:06:13 +00:00
parent 4277a7d8e6
commit 2bd231c563
2 changed files with 3 additions and 7 deletions

View File

@ -865,7 +865,7 @@ void FixRigid::post_force(int vflag)
double gamma1,gamma2;
double delta = update->ntimestep - update->beginstep;
delta /= update->endstep - update->beginstep;
if (delta != 0.0) delta /= update->endstep - update->beginstep;
t_target = t_start + delta * (t_stop-t_start);
double tsqrt = sqrt(t_target);

View File

@ -1136,9 +1136,7 @@ void FixRigidNH::remap()
void FixRigidNH::compute_temp_target()
{
double delta = update->ntimestep - update->beginstep;
if (update->endstep > update->beginstep)
delta /= update->endstep - update->beginstep;
else delta = 0.0;
if (delta != 0.0) delta /= update->endstep - update->beginstep;
t_target = t_start + delta * (t_stop-t_start);
}
@ -1150,9 +1148,7 @@ void FixRigidNH::compute_temp_target()
void FixRigidNH::compute_press_target()
{
double delta = update->ntimestep - update->beginstep;
if (update->endstep > update->beginstep)
delta /= update->endstep - update->beginstep;
else delta = 0.0;
if (delta != 0.0) delta /= update->endstep - update->beginstep;
p_hydro = 0.0;
for (int i = 0; i < 3; i++)