Torrential rains have caused flooding on the runways and in the terminal, complicating air traffic and causing the diversion of more than 40 flights.