On the numerical solution of an integro-differential equation arising from wave-power hydraulics