The existing code provided an implementation of the sixth order Gear predictor-corrector algorithm. The Berendsen thermostat and pressure control modulate the evolution of the system by scaling the velocities.
Defining scaled time derivatives of
as
,
,
,
etc., the predictor step for a fourth order Gear algorithm
can be written in matrix form [1]
Gear discussed the best choice for the corrector coefficients , which depends on how many derivatives of are used [1,8,9]. The predictor-corrector algorithm has advantages over the Verlet algorithm only for small timesteps, but having the velocities available is convenient for implementing the Berendsen controls.