Hello Riadh,
Thanks again for your help yesterday. I tried to use Write argument, but I am doing something wrong as it runs but does not produce any results for salinity and temperature. It seems that I do not have logical argument even if it does not show any error. I am new to Fortran90 and I have looked at books and some staff on google but it presents very simple cases. Can you please advise what to change on below. Also when I tried to change statement IF(TA%ADR(ITRAC)%P%NAME(1:7).EQ.'SALINIT') THEN, it did not accept as it exceeds the number of subintegers, so I had to change 7 to 4. Thanks.
IF(NTRAC.NE.0) THEN
DO ITRAC=1,NTRAC
CALL OS('X=C ',X=TA%ADR(ITRAC)%P,C=TRAC0(ITRAC))
IF(TA%ADR(ITRAC)%P%NAME(1:4).EQ.'SALI') THEN
WRITE(LU,*) 'CONDIM: TRACERS INITIALIZATION'
DO IPLAN=1,NPLAN
DO I=1,NPOIN2
J=NPOIN2*(IPLAN-1)+I
IF(IPLAN.GT.18) THEN
TA%ADR(ITRAC)%P%R(J)=0.D0
ELSEIF (IPLAN.GT.15.AND.IPLAN.LE.28) THEN
TA%ADR(ITRAC)%P%R(J)=14.D0
ELSE
TA%ADR(ITRAC)%P%R(J)=34.D0
ENDIF
ENDDO
ENDDO
STOP
ELSEIF(TA%ADR(ITRAC)%P%NAME(1:4).EQ.'TEMP') THEN
WRITE(LU,*) 'CONDIM: TRACERS INITIALIZATION'
DO IPLAN=1,NPLAN
DO I=1,NPOIN2
J=NPOIN2*(IPLAN-1)+I
IF(IPLAN.GT.18) THEN
TA%ADR(ITRAC)%P%R(J)=0.29D0
ELSEIF (IPLAN.GT.15.AND.IPLAN.LE.28) THEN
TA%ADR(ITRAC)%P%R(J)=1.D0
ELSE
TA%ADR(ITRAC)%P%R(J)=4.3D0
ENDIF
ENDDO
ENDDO
STOP
ENDIF
ENDDO
ENDIF
Kind Regards!
Violeta