Effect of the dynamic pressure on the shock wave structure in a rarefied polyatomic gas