Hello!
I use beginNNLeaves to create a loop for finding out the free boundary, but the loop will encounter segment errors.
I have already debugged it, the problem is that the neighbor_it will out of the index. It seems that my usage of this function is correct, could you help me find out the reasons?
Sincerely thank you for your help!

Hello!

I use beginNNLeaves to create a loop for finding out the free boundary, but the loop will encounter segment errors.
I have already debugged it, the problem is that the neighbor_it will out of the index. It seems that my usage of this function is correct, could you help me find out the reasons?
Sincerely thank you for your help!