Liquid flow through nanopores: from hydrodynamic to atomistic motion