A coupled pressure and temperature correction algorithm for all Mach numbers