Fixing bug in update of velocity and acceleration in nlineardynamic.C