Codes may change but friction loss, volume and flow for a 1/2" pipe will not. It's just a water heater correct? Or does it have a pump also?