forked from lijiext/lammps
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@8314 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
parent
44a8e24e2a
commit
bb64d07020
|
@ -391,10 +391,11 @@ void FixShake::setup(int vflag)
|
|||
// setup SHAKE output
|
||||
|
||||
bigint ntimestep = update->ntimestep;
|
||||
next_output = ntimestep + output_every;
|
||||
if (output_every == 0) next_output = update->laststep + 1;
|
||||
if (output_every && ntimestep % output_every != 0)
|
||||
next_output = (ntimestep/output_every)*output_every + output_every;
|
||||
if (output_every) {
|
||||
next_output = ntimestep + output_every;
|
||||
if (ntimestep % output_every != 0)
|
||||
next_output = (ntimestep/output_every)*output_every + output_every;
|
||||
} else next_output = -1;
|
||||
|
||||
// half timestep constraint on pre-step, full timestep thereafter
|
||||
|
||||
|
|
Loading…
Reference in New Issue