Integrated new water net to c-code