Based on the equivalence between the aerdynamical Euler equation and the shallow water long wave equation, the equilibrum distribution function of the orginal LBM is improved, and hence the macrodynamical equation of shallow water long waves is derived.