forked from lijiext/lammps
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@9264 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
parent
4277a7d8e6
commit
2bd231c563
|
@ -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);
|
||||
|
||||
|
|
|
@ -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++)
|
||||
|
|
Loading…
Reference in New Issue