Computation of leading-edge contamination