# How to freeze the mesh boundaries

**URL:** <https://community.freefem.org/t/how-to-freeze-the-mesh-boundaries/1001>\
**Category:** General Discussion\
**Created:** [June 1, 2021, 1:35am UTC](https://community.freefem.org/t/how-to-freeze-the-mesh-boundaries/1001 "2021-06-01T01:35:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ZHOUJIAXIN0814](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/zhoujiaxin0814/32/582_2.png) [@ZHOUJIAXIN0814](https://community.freefem.org/u/ZHOUJIAXIN0814)\
**Post date:** [June 1, 2021, 1:35am UTC](https://community.freefem.org/t/how-to-freeze-the-mesh-boundaries/1001/1 "2021-06-01T01:35:43Z")

</div>

Greetings!

I have a question regarding the Freefem++ 2D remesher.

I want to refine only part of my meshing for efficient computation.

The idea is to use **trunc** function to divide the whole region into two parts.  
Then I use the **adaptmesh** function to refine a part of my mesh.  
The thing is, the compatibility between the adapted mesh and the other one can not be guaranteed. Therefore, I am looking for a function that can be used to freeze the mesh boundaries of the two parts.

Thank you very much.

Best regards,  
Zhou
