William,
If you read the TIDAL_MODEL_T2D subroutine, you can see a call to BORD_TIDE_TPXO in which the tidal boundary conditions will be computed.
At the end, you can read the loop:
DO K=1,NPTFR
IFRLIQ=NUMLIQ%I(K)
! TEST ON NUMTIDE PROBABLY NO LONGER USEFUL
IF(NUMTIDE%I(K).GT.0.AND.IFRLIQ.GT.0) THEN
IF(BND_TIDE(IFRLIQ).GT.0) THEN
! POSSIBLE SMOOTHING AT THE BEGINNING
! IF(AT.LT.1800.D0) THEN
! UBTIDE%R(K) = UBTIDE%R(K)*(AT/1800.D0)
! VBTIDE%R(K) = VBTIDE%R(K)*(AT/1800.D0)
! ENDIF
IF(LIUBOR%I(K).EQ.KENTU) THEN
UBOR%R(K) = UBTIDE%R(K)
VBOR%R(K) = VBTIDE%R(K)
U%R(MESH%NBOR%I(K)) = UBOR%R(K)
V%R(MESH%NBOR%I(K)) = VBOR%R(K)
ENDIF
IF(LIHBOR%I(K).EQ.KENT) THEN
HBOR%R(K) = HBTIDE%R(K)
H%R(MESH%NBOR%I(K)) = HBOR%R(K)
ENDIF
ENDIF
ENDIF
ENDDO
You can add the 0.2 m/s current in the part of the code below, by adding this contribution to UBTIDE%R(K) when needed.
IF(LIUBOR%I(K).EQ.KENTU) THEN
UBOR%R(K) = UBTIDE%R(K)
VBOR%R(K) = VBTIDE%R(K)
U%R(MESH%NBOR%I(K)) = UBOR%R(K)
V%R(MESH%NBOR%I(K)) = VBOR%R(K)
ENDIF
You can use the BOUNDARY_COLOUR array to mark the boundary nodes where you want to apply your +0.2 m/s or -0.2 m/s extra velocity.
You can have a look at user_corfon subroutine in one of the TELEMAC-2D tide example to copy/paste.
BOUNDARY_COLOUR%I(N) gives you the number of the boundary nodes in the BOUNDARY CONDITIONS FILE before partitioning. In sequential mode, it gives you N, the number of the line in the BC file. In parallel mode, it gives you the one if not partitionned, so you can still use this information in parallel.
In your case, as you know the limits of your lateral boundaries, these could be the limits to a test for BOUNDARY%I(N) if N varies from 1 to the number of BC nodes and some nodes numbers you know.
In the CORFON subroutine, you sweep the number of boundary nodes with index N, do a test for I=BOUNDARY_COLOUR%I(N) and if you are between 2 limits, you apply a modification of the bottom elevation for boundary node N.
And if you look at the geo_tide.cli BC file, you can see that 250 and 339 are the limits of the open boundary of this model.
Hope this helps,
Chi-Tuan