Had to add a rounding routine to get the ode solver to operate
correctly.