A linear model for the tearing mode of a tokamak plasma with flow and a resistive wall boundary condition