An analytic green's functions method in pseudo-spectral Navie -Stokes solvers for boundary layer and channel flows