A computational method for secondary flows in a compressor has been extended to treat stalled flows. An integral equation is used which simulates the inviscid flow at the wall, under the viscous flow influence. We present comparisons with experimental results for a 2D stalled boundary layer, and for the secondary flow in a highly loaded stator of an axial flow compressor.