Turbomachine with casing grooves