A method for solving the heat equation for a particular set of discontinuous boundary conditions is presented. Calculated results are compared with a problem where the discontinuities have been averaged out. The method is of wider application than the present problem.