Recursion in FreeFem


I would like to know if it is possible to do recursive function in FreeFem? Because when I try to do recursion I get “Identifier <name_of_the_recursive_function> does not exist” error.

Thanks in advance for your answer.

Sorry, it’s not possible. What would you like to achieve? Maybe there is some other way.

Thank you for your quick answer. I would like to manipulate Binary Tree.

What’s your end goal, if I may ask?

I’m working on image compression by using inpainting. I would like to implement the following algorithm for the creation of the inpainting mask (which is characterisitic function) : BTree algorithm (section 3.1).