The paper is concerned with numerical modelling of inviscid as well as viscous gas flow. Special attention is paid to a suitable adaptive strategy for a precise resolution of shock waves.