Since discharging to the ocean, hydrochloric acid would be more environmentally friendly than citric -- the HCl rxn. with scale makes saltwater.
It might be difficult keeping the citic acid solution hot to keep it effective. Also a slight(!!!) problem that calcium citrate [CAS# 813-94-5, Tricalcium Dicitrate Tetrahydrate] is almost insoluble in water. Of course, it is ~non-toxic (permitted in food), so you could eat it.
I suggest using dilute HCl (don't want localized heating or pipe corrosion) and monitoring the pH of the effluent to control your pumping speed. Not sure how well pigging will work with changing ID as scale dissolves, but if pigging, make several fast passes, don't try do do in one.
When the scale gets thin, add sodium silicate to the HCl solution to inhibit attack on the pipe in the clean areas.