Parameters of mshmet

Hi all,

This new post concerns the use of mshmet in FreeFem. My aim is to evaluate the use of mmg2d as I am now fully happy with the results obtained with adaptmesh.

According to the FreeFem documentation, some parameters are available for the command mshmet. However as soon as I try to prescribe an optional paramter a Segmentation fault is raised. This problem can be reproduced with the following script (where I try to use the optional parameter aniso but the same error is raised with hmin/hmax/loptions): adaptSquarePoisson.edp (1.2 KB)

Best,

Lucas

PS: The script in this post is created from the the nice tutorial about how to use mshmet and mmg2d at http://annabellecollin.perso.math.cnrs.fr/TPS/TP_0.pdf (it’s in French sorry). You can download the original files at http://annabellecollin.perso.math.cnrs.fr/TPS/Code_TP0.zip.

Hi,
The following code piece suggests me that in the 2D FreeFem-mshmet interface, options can only be passed with the loptions and doptions keywords. However, I could not make your code work even with this either. :frowning:

Hi,

The fact that only loptions and doptions can be passed would make sense since hmin<->doptions(0), hmax<->doptions(1), aniso<->loptions(1), etc…
But as you pointed out, Segmentation fault is raised if loptions is passed to mshmet.

Best,

Lucas