  We consider magnetic friction between two square lattices of the
ferromagnetic Ising model of finite thickness. We analyze the dependence on the
boundary conditions and the sample thickness. Monte Carlo results indicate that
the setup enables us to control the frictional force by magnetic fields on the
boundaries. In addition, we confirm that the temperature derivative of the
frictional force as well as that of the boundary energy has singularity at a
velocity-dependent critical temperature.
