# How to identify the boundary label for an import mesh

**URL:** <https://community.freefem.org/t/how-to-identify-the-boundary-label-for-an-import-mesh/161>\
**Category:** General Discussion\
**Created:** [October 26, 2019, 5:12pm UTC](https://community.freefem.org/t/how-to-identify-the-boundary-label-for-an-import-mesh/161 "2019-10-26T17:12:38Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [October 27, 2019, 5:50am UTC](https://community.freefem.org/t/how-to-identify-the-boundary-label-for-an-import-mesh/161/2 "2019-10-27T05:50:10Z")

</div>

Here is one way to do it.

```auto
mesh Th = square(10, 10);
int[int] lab = labels(Th);
varf onG(u, v) = on(lab, u = label);
fespace Vh(Th, P1);
Vh u;
u[] = onG(0, Vh, tgv = -1);
plot(u);

```

---

_[View the full topic](https://community.freefem.org/t/how-to-identify-the-boundary-label-for-an-import-mesh/161)._
