I hope you are able to see the book page ok on the attachment.
When the valve closes, it seems to imply that a piezometer at the valve with show height H + ΔH
Thus, if we define positive direction to the right,
∑forces on the fluid in horizontal pipe = m.a
(ρgH + ρ0) - (ρg(H+ΔH) + ρ0) = ρAL. dv/dt where: ρAL is the mass of fluid in the horizontal pipe and ρ0 is atmospheric pressure (A is pipe cross section)
This gives ΔH = - L/g dv/dt which implies that then delta H is positive, then there will be a deceleration of flow. Why has there not been any friction mentioned here?