Hello Pierre-Henri,
Thanks for having shared your scripts.
In TELEMAC, the convention is as BK (that is normal), the numbering of boundary nodes starts from the point located the more South-West of the domain (see x+y value). When dealing with PREVIMER, FES or NEA, the harmonic constituents should be read in the same order than the initial boundary nodes.
You can read the components available for BORD_TIDE_MISC (to use PREVIMER, FES or NEA tidal database) in DECLARATIONS_TELEMAC2D module:
CHARACTER(LEN=4) :: MISC_CONSTID_BTM(MISC_NCMX_BTM) =
& (/'2MK6','2MN6','2MS6','2N2 ','2Q1 ',
& '2SM2','2SM6','E2 ','Tta1','J1 ',
& 'K1 ','K2 ','KJ2 ','KQ1 ','L2 ',
& 'La2 ','M1 ','M2 ','M3 ','M4 ',
& 'M6 ','M8 ','Mf ','MK3 ','MK4 ',
& 'MKS2','Mm ','MN4 ','MO3 ','MP1 ',
& 'MS4 ','MSf ','MSK6','MSN2','MSN6',
& 'MSqm','Mtm ','Mu2 ','N2 ','N4 ',
& 'Nu2 ','O1 ','OO1 ','P1 ','Pi1 ',
& 'Q1 ','R2 ','Ro1 ','S1 ','S2 ',
& 'S4 ','Sa ','Sig1','SK4 ','SN4 ',
& 'Ssa ','T2 ','Phi1','Ki1 ','Psi1',
& 'Z0 '/)
There are currently 61 constituents including PREVIMER, NEA and FES2014 ones.
Hope this helps and thanks for your scripts,
Chi-Tuan