Temperature dependence of spontaneous magnetization using a continuous model