Impose me value as boundary condition

Hello,

I want to impose the mean value of u as boundary condition. So I have tried to do this: on(1, int1d(Th,1)(u)=1), but it doesn’t work.

Could someone face the same problem and help me ?

Best regards,

Loïc,

See FreeFem-sources/Laplace-lagrange-mult.edp at develop · FreeFem/FreeFem-sources · GitHub.