Dear Loïc,
Instead of using intalledges
you can use int1d(Th,5)
, and jump
will be available.
For the second term, you have to take the integral “from the outside”.
For that you need to have a clockwise orientation of \Gamma.
About the int1d on an internal boundary of a discontinuous function (and the related orientation issue), see
But take care that in order to keep the inside region in you mesh (and not exclude it), for a clockwise orientation of \Gamma you will need to apply buildmesh
with a negative number on border 5, like
mesh Th=buildmesh(b1(10)+b2(10)+b3(10)+b4(10)+b5(-20));
François.