How do rocks melt?