# Manually Refine Mesh near boundary

**URL:** https://community.freefem.org/t/manually-refine-mesh-near-boundary/1087
**Category:** General Discussion
**Created:** [July 6, 2021, 7:16pm UTC](https://community.freefem.org/t/manually-refine-mesh-near-boundary/1087 "2021-07-06T19:16:58Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![kevinmo08](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/kevinmo08/32/217_2.png) [@kevinmo08](https://community.freefem.org/u/kevinmo08)
#### Post date: [July 6, 2021, 7:16pm UTC](https://community.freefem.org/t/manually-refine-mesh-near-boundary/1087/1 "2021-07-06T19:16:58Z")

</div>

Hi all,

I am attempting to solve a convection diffusion equation in FreeFEM using the built in mesh software.

I have found that splitmesh allows me to refine a mesh based on the functional form I input to it. However, is there a way to locally refine the mesh near a given boundary, like splitting the mesh 3 times if within distance “x” from the boundary .

Thank you in advance.
