Comparison of microscopic dynamics and continuum theory for Poiseuille and diffusioosmotic flows in a microchannel | Synapse