MB3 137a: Mixing Hot and Cold Water on Shabbos (318:11-12)

Putting cold water into a bathtub of hot water is prohibited but adding hot water into a kli shlishi tub is permissible. Adding cold water to an empty pot to cool it off.