The (part of the output and) error message is:
plot of border done
current line = 37
Exec error : Error points border points to close < diameter1e-7
– number :1
Exec error : Error points border points to close < diameter1e-7
– number :1
err code 7 , mpirank 0
I’ve found only two similar questions on the internet, once was an issue with the orientation which is not the case here, another is a question on some forum with an identical error message but no answer.
Turns out I misinterpreted the documentation. I thought there was a system that could just produce the border using its vertexes as input. Now that sounds ridiculous because I don’t see how Freefem++ would be able to make the difference with numerical function input and list of vertexes.
But the documentation makes it seem like the t should be an integer index in that example and not a real parameter. Not sure what is actually meant in this example.
as a border defined uniquely by its vertexes. Turns out this doesn’t work like that and have to build all the parametrized curves.
Tbh I think this part of the documentation should be improved as there seems to be a typo there (shouldn’t this be P.y instead of P.x?). And that part isn’t very clear.
If you feed a sequence of points (in the way given by the example) to border it won’t interpolate them, it will just take the integer part of t use this as an index. Which is why this gives points to[o] close because they are repeated many times when the step wrt t is small.
This part of the documentation is really new, so there is some mistakes in it. If you are interrested to improve it, you can do a PR on the Github repository