- This topic has 2 replies, 2 voices, and was last updated 7 years, 10 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
Home › Forum › SOFA › Programming with SOFA › [SOLVED] init and cleanup methods in simulation tree
Tagged: 64_bits, SOFA_1608, Windows_10
Hi,
my questions are about the global init and cleanup methods in the sofa::simulation::tree namespace. I want to be sure to use them correctly.
Reading the code, they change a series of static boolean variables. Are these variables used somewhere else? What is their utility? What’s the behavior if I don’t call those two methods? If I don’t call them I get warnings, but do I risk anything else?
My second topic: if I call cleanup after init, does it mean that the tree is not initialized anymore? I see that cleanup does not turn the init flags. I assume those two methods have to be used only once in the program lifetime, am I right?
Thanks for your help,
Alex
Hi Alex,
Apparently no much people were able to help on this. Sorry about it.
There is a discussion on GitHub that could be related: see PR#168.
Let us know if it rises your concern.
Cheers,
Hugo
Hi Hugo,
thanks for pointing me to this interesting discussion. I understand the goal of init functions now. It’s basically a way to link everything together on all platforms.
Thanks,
Alex
WARNING
The forum has been moved to GitHub Discussions.
Old topics and replies are kept here as an archive.