Convergence of the Hamiltonian Particle‐Mesh Method Applied to Barotropic Fluid Equations