yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #03913
Re: How to use a plugin
> Oh, so we should always do like you suggest when we define global
> variables if we want to maintain the parallel processing? If so, I
> would suggest to add this point to Yade documentation so that we all
> keep in mind (since parallel processing is enabled by default).
I think it is noted at few places (like modifying Body::state from Law
functors). That said, you shouldn't define globals in the first place,
since they break encapsulation of objects and can lead to unexpected
interactions. (Yade has only a few necessary globals (singletons, to be
more precise): ClassFactory, SerializableSingleton and Omega. Even scene
is not global. I wouldn't encourage that practice by documentation,
supposing that you know what you do if you use globals...
Cheers, v.
Follow ups
References
-
How to use a plugin
From: boon chiaweng, 2010-04-01
-
Re: How to use a plugin
From: Václav Šmilauer, 2010-04-08
-
Re: How to use a plugin
From: boon chiaweng, 2010-04-08
-
Re: How to use a plugin
From: Václav Šmilauer, 2010-04-08
-
Re: How to use a plugin
From: Anton Gladky, 2010-04-08
-
Re: How to use a plugin
From: boon chiaweng, 2010-04-08
-
Re: How to use a plugin
From: boon chiaweng, 2010-04-08
-
Re: How to use a plugin
From: boon chiaweng, 2010-04-09
-
Re: How to use a plugin
From: boon chiaweng, 2010-04-09
-
Re: How to use a plugin
From: Václav Šmilauer, 2010-04-09
-
Re: How to use a plugin
From: chiara modenese, 2010-04-09