1: \begin{abstract}
2: Finite-difference schemes for the one-dimensional shallow water
3: equations in the presence of a magnetic field for various bottom
4: topographies are constructed. Based on the results of the group
5: classification recently carried out by the authors,
6: finite-difference analogues of the conservation laws of the original
7: differential model are obtained. Some typical problems are
8: considered numerically, for which a comparison is made between the
9: cases of a magnetic field presence and when it is absent (the
10: standard shallow water model). The invariance of difference schemes
11: in Lagrangian coordinates and the energy preservation on the
12: obtained numerical solutions are also discussed.
13: \end{abstract}
14: