Computations of optimal controls for incompressible flows