A possible problem in your steering file is the names of tracers:
For each tracer, the name is introduced using 32 characters (16 for the name and 16 for the unit) thus for salinity, for e.g. you have to write "SALINITY
KG/M3
". and so for temperature.
Furthermore, in order to be to be more pragmatic, you can change the block
IF(TA%ADR(ITRAC)%P%NAME(1:4).EQ.'SALI') THEN
DO IPLAN=1,NPLAN
.
.
.
TA%ADR(ITRAC)%P%R(J)=0.D0
by
DO I=1,NPOIN2
DO IPLAN = 1 , NPLAN
J = I + ((IPLAN-1)*NPOIN2)
TA%ADR(1)%P%R(J) = value for temperature
TA%ADR(2)%P%R(J) = value for salinity
I'm not expert of T3D but it seems to me that there is a mandatory order of tracers when dealing with temperature and salinity. If I remember well, temperature must be the first one, then salinity and then the remaining tracers. To be confirmed (Cristophe or Chi-Tuân)
With my best regards
Riadh