I've stumbled upon the following question:
Consider a steady, incompressible and viscous flow on an inclined plane with an angle $\alpha$. The surface is in contact with air (which can be assumed to be non-viscous), where the air pressure is equal to $p_0$. Let us denote the flow axis by $x$ and the height from the bottom by $z$ (see the figure). The distance from the bottom to the surface is $h$. Write the Navier-Stokes equations for the pressure $p$ and velocity $v$, formulate the boundary conditions and solve for $p$ and $v$.
In the solution they claim without proving that both $p$ and $\mathbf{v}$ depend only on $z$ and that $\mathbf{v}=v(z)\hat{\mathbf{x}}$. But how can this be shown? If we apply Bernoulli's principle to the two points $A$ and $B$ that lie along some streamline ($z=\mathrm{const}$), then we get a contradiction, because if $v_A=v_B$ and $p_A=p_B$ then
$$ \frac{\rho v_{A}^{2}}{2}+\rho gh_{A}+p_{A}=\frac{\rho v_{B}^{2}}{2}+\rho gh_{B}+p_{B}\Longrightarrow h_{A}=h_{B} $$
which is clearly incorrect. Perhaps Bernoulli's theorem isn't applicable in this case due to the fact that the fluid is viscous, i.e. there's friction between different layers, and since Bernoulli's principle stems from conservation of energy it must include some friction terms. Regardless, I'm not quite sure how to prove that $v$ and $p$ depend only on $z$.