Hello Schmirre,
You'll have to code something, but it's quite simple for a start. No deep fortran knowledge needed.
First things to note:
The variable
MESH3D%Z%R holds the elevation of each 3D mesh node.
The variable
TA%ADR(ITRAC)%P%R holds the value of the tracer n°
ITRAC at each 3D mesh node.
So first you'll have to know what is the number of the tracer that corresponds to the temperature (as you defined in the steering file).
Then you'll need to define the depth thresholds of temperature.
Let's say, for an example, that the temperature is in tracer n° 2 and that I want 10°C for points below 10 m depth, and 20°C for everything else. The code would be something like this:
DO IP = 1,NPOIN ! LOOPING THROUGH ALL THE MESH NODES
! IF ( THE DEPTH IS LESS THAN -10 M) THEN
IF ( MESH3D%Z%R(IP) .LT. -10.D0 ) THEN
! THE TRACER 2 OF THE NODE IP IS 10°C
TA%ADR(2)%P%R(IP) = 10.D0
! OTHERWISE
ELSE
! THE TRACER 2 OF THE NODE IP IS 20°C
TA%ADR(2)%P%R(IP) = 20.D0
ENDIF
ENDDO
This may throw an error because you user the variable IP without declaring it, then just add "INTEGER :: IP" to the declaration section of the code.
This is a simple example with a hard limit between layers. You could embellish this code to make a vertical gradient of temperature according to the depth. Just an idea
Hope this helps.
Regards,
Phelype