Heat flux in one-dimensional systems