I have just installed FreeFem++ 4.7-1.
There is a segmentation fault when trying to use the external library “distance”.
I have already identify that the segmentation fault comes from the distance command and not from other things.
Here’s an extract of my code :
load “msh3”
load “distance”
real xA, yA, zA;
xA = 0.25; yA = 0.7; zA = 0.1;
real hmin1, hmax1;
real R = 0.05;
I don’t have any segfault. Are you sure you are using the distance plugin from your new installation, and not the one from your previous installation? Your main.edp is wrong, it should read o2[] = o2dist[];.
Also, Mmg is now interfaced in FreeFEM, you don’t need those exec command, you can just load mmg instead, see this example.