On an alternating direction implicit finite element method for flow problems