Critical point of magnetic nanostructures in the ising model