Customise BAMG mesh generator

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?