Calculations of viscous flows with a multigrid method