# Impose me value as boundary condition

**URL:** <https://community.freefem.org/t/impose-me-value-as-boundary-condition/1347>\
**Category:** General Discussion\
**Created:** [November 23, 2021, 1:46pm UTC](https://community.freefem.org/t/impose-me-value-as-boundary-condition/1347 "2021-11-23T13:46:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Loic](https://avatars.discourse-cdn.com/v4/letter/l/e9c0ed/32.png) [@Loic](https://community.freefem.org/u/Loic)\
**Post date:** [November 23, 2021, 1:46pm UTC](https://community.freefem.org/t/impose-me-value-as-boundary-condition/1347/1 "2021-11-23T13:46:06Z")

</div>

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,

---

<div class="post-metadata">

**Author:** ![prj](https://avatars.discourse-cdn.com/v4/letter/p/ecae2f/32.png) [@prj](https://community.freefem.org/u/prj)\
**Post date:** [November 23, 2021, 1:53pm UTC](https://community.freefem.org/t/impose-me-value-as-boundary-condition/1347/2 "2021-11-23T13:53:54Z")

</div>

See [FreeFem-sources/Laplace-lagrange-mult.edp at develop · FreeFem/FreeFem-sources · GitHub](https://github.com/FreeFem/FreeFem-sources/blob/develop/examples/tutorial/Laplace-lagrange-mult.edp).
