# Argument Region for int2d function

**URL:** https://community.freefem.org/t/argument-region-for-int2d-function/3911
**Category:** General Discussion
**Created:** [May 12, 2025, 8:29am UTC](https://community.freefem.org/t/argument-region-for-int2d-function/3911 "2025-05-12T08:29:11Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![dominiquebodin](https://avatars.discourse-cdn.com/v4/letter/d/8491ac/32.png) [@dominiquebodin](https://community.freefem.org/u/dominiquebodin)
#### Post date: [May 12, 2025, 8:29am UTC](https://community.freefem.org/t/argument-region-for-int2d-function/3911/1 "2025-05-12T08:29:11Z")

</div>

Dear all,  
I’m creating a 3D mesh using a geo file from Gmsh. Some labels (integer numbers) defines the boundary surfaces, and it works fine for Dirichlet condition with solve:on(label,condition).  
For Neumann condition, I would like to use the argument Region of the int2d function:  
int2d(Th, Region) ()

Apparently, the label from Gmsh cannot be used directly since it creates an error.  
Thus my question, how to create a Region from a surface defined by a label out of Gmsh.  
Thanks for your support  
Dominique

---

<div class="post-metadata">

### Author: ![dominiquebodin](https://avatars.discourse-cdn.com/v4/letter/d/8491ac/32.png) [@dominiquebodin](https://community.freefem.org/u/dominiquebodin)
#### Post date: [May 13, 2025, 3:13pm UTC](https://community.freefem.org/t/argument-region-for-int2d-function/3911/3 "2025-05-13T15:13:23Z")

</div>

sorry, the error was due to badly written function in int2d function.

sorry again for the inconvenience
