The boundary between warm and cold water in an ocean or a lake is known as Thermocline.
It is a steep temperature gradient in a water body that is marked by a layer above and below which the water is at different temperatures. It is a transition layer between warm water at the ocean's surface and cooler deep water below.