Recently when re-reading Griffth electromagnetism, where he explained about how if the magnetic system is cylindrical, solenodial, planar or toroidally symmetric (4th edition, p.283; 1999 reprint, p.273), then
$$\nabla \cdot \vec{M}=0$$
always and thus the $\vec{H}$ field can be obtained via the usual Ampere's Law
However, on closer inspection, I am wondering whether said conditions by Griffth is a sufficient condition to ensure the divergence of magnetisation to vanish everywhere.
Consider a disk of material with electron spins being engineered to give the following radial magnetisation.
$$\vec{M}=a\hat{r}$$
where $a$ is a constant. Then such system clearly has nonvanishing divergence at the circular rim of the disk and also at the axis.
Now stack these discs vertically as shown, then a system obeying cylindrical symmetry can be formed with nonvanishing divergence. This is still kinda ok because at the flat ends, the south pole can still be found thus it still act like a bar magnet.
But things get very strange when the discs were arranged in a closed loop. The resulting system is not only toroidally symmetric, have nonvanishing divergence of $\vec{M}$. Due to the south pole end of each magnitsation vector being buried inside the core of the torus, to the external environment, the torus is effectively a magnetic north monopole.
How to recoincile Griffth's statement that a magnetic system with some symmetry will ensure the vanishing of the divergence of $\vec{M}$ with the examples shown in this post?
For the torus with radial $\vec{M}$ what is its magnetic field. Will it end up having no magnetic field (thus becoming some kind of anapole) due to how the south pole end is a ring buried inside the core of the torus?