Gas-dynamic description of a plasma in a corrugated magnetic field