Temperature distribution of an idealized ice cap