Austrian commander Karl Mack had gathered the greater part of the Austrian army at the fortress of Ulm in Swabia