Hello Gareth,
Currently, TELEMAC-2D and 3D are implemented to use every known tidal constituent available in the tidal solutions coming from OSU (like TPXO, European Shelf, etc.).
Anyway, you can do whatever you want by changing the TPXO module.
I think the easier way is to change the implementation of the DEF_CID subroutine of the TPXO module.
Rather than
K = 1
DO IC = 1,NC0
IND(K) = 0
DO JC = 1,TPXO_NCMX
IF( CID(IC).EQ.TPXO_CONSTID(JC) ) THEN
IND(K) = JC
EXIT
ENDIF
ENDDO
IF( IND(K).EQ.0 ) THEN
WRITE(LU,*) 'TPXO : WARNING:' //
& 'CONSTITUENT ID ',CID(IC),' IS NOT ALLOWED'
ENDIF
K = K + 1
ENDDO
you can try:
K = 1
DO IC = 1,NC0
IND(K) = 0
DO JC = 1,TPXO_NCMX
IF( CID(IC).EQ.TPXO_CONSTID(JC)
& .AND.((CID(IC).EQ.'m2 ')
& .OR.(CID(IC).EQ.'m4 '))) THEN
IND(K) = JC
EXIT
ENDIF
ENDDO
IF( IND(K).EQ.0 ) THEN
WRITE(LU,*) 'TPXO : WARNING:' //
& 'CONSTITUENT ID ',CID(IC),' IS NOT ALLOWED'
ENDIF
K = K + 1
ENDDO
or directly:
DO K = 1,NC0
IND(K) = 0
ENDDO
IND(1) = 1
IND(21) = 1
as M2 is the 1st tidal constituent and M4 is the 21st tidal constituent of the TPXO_CONSTID array.
I let you adjust the right implementation corresponding to the tidal constituents you want to keep.
Please tell me if it suits what you want (I have not compiled nor tried what I wrote).
Hope this helps,
Chi-Tuan