# Customise BAMG mesh generator

**URL:** <https://community.freefem.org/t/customise-bamg-mesh-generator/819>\
**Category:** General Discussion\
**Created:** [February 19, 2021, 10:28am UTC](https://community.freefem.org/t/customise-bamg-mesh-generator/819 "2021-02-19T10:28:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zheyan-Z](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/zheyan-z/32/439_2.png) [@Zheyan-Z](https://community.freefem.org/u/Zheyan-Z)\
**Post date:** [February 19, 2021, 10:28am UTC](https://community.freefem.org/t/customise-bamg-mesh-generator/819/1 "2021-02-19T10:28:50Z")

</div>

My research is on error estimation and mesh adaptation (-h). Currently I can only find adaptmesh() API which I have limited control. I have read the paper ‘An approximation of anisotropic metrics from higher order interpolation error for triangular mesh adaptation’ however still had difficulties. Thus have following questions:

1. Can I use BAMG independent of FF++? Should I only compile src code in BAMG and BAMGlib? Where is the source code for error estimation?

2. Where should I modify the code in order to load user defined element size field rather than metric field?

3. How to export the element size field by the FF++ embedded error estimator?
