This paper deals with the magnetic field continuity conditions in finite-element analysis. Our study is based on numerical and analytical models. Different known finite-element codes, based on 2-D nodal finite element or 3-D edge element, are used to analyze the magnetic field in a linear motor-like device. The use of an analytical model gives interesting insight on interface errors problems in finite-element analysis.