Wastewater-distribution tanks above the heatexchanger