I remember seeing something like this at a large milk processing plant. There was demand for both heat and cooling, at relatively mild temperatures, and someone had worked out that the duty of each was about the same, but only when averaged over a few hours.
So they installed a huge tank that had hot inlets and outlets up top, and cold inlets and outlets at the bottom. And presumably some internals to stop convection currents from mixing everything up. So if something needed heating, they would draw from the top of the tank, and return to the bottom. And for mild cooling duties, would draw from the bottom and return to the top. So their process was constantly adding heat to the top, and removing it from the bottom.
Any difference between the heating and cooling duties would start shifting the gradient within the tank, but because it usually evened out over time it would never get to the point where either temperature was too far out of spec. And there was trim heating and cooling at all the endpoints anyway.
I could never figure out why they didn't just do two tanks. Perhaps it was someone's way to get around a footprint issue. The only time I really talked to someone about it, they seemed to think it was a bit of a dud.