Hi Jean-Baptiste,
It should work, the few lines you've written seem to be right.
If it doesn't work, it should mean that you're running the code in offline coupling mode, isn't it?
The test
IF(INCLUS(COUPLING,'TOMAWAC'))
is true only for inline coupling mode.
So, I think you just have to move your
DO loop outside the
IF test.
To add a test on liquid boundary points only, you can introduce the LIHBOR array for instance (from the declarations_telemac2d module), in the same way that in bord.f for example:
IF(LIHBOR%I(K).EQ.KENT) THEN...
To use NBOR in corfon subroutine, you can reach it by the bief_mesh object: MESH%NBOR%I
Be aware that there is also a tom_corfon.f subroutine for Tomawac bathymetry.
I hope it helps.
Regards,
Laurent