Viscous and Inviscid Nonequilibrium Gas Flows