Analysis of a stepwise numerical method for solution of a three-dimensional flow problem