Manually Refine Mesh near boundary

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.