The process of making magnets