Hello,
In fact it is not programmed like that, the density is for the water only, depending on the temperature and the salinity, or on a tracer, which is your case. What you have in mind would be rather a 2-phase flow. The way to take into account a tracer with a different density would be to use the density law number 4, and give the corresponding coefficient BETAC. The subroutine computing the density is drsurr.f in library telemac3d, you can see there how it is implemented and the definition of BETAC, it is also in the documentation.
With best regards,
Jean-Michel Hervouet