Comment 1 for bug 1026073

Revision history for this message
Anton Gladky (gladky-anton) wrote : Re: [Bug 1026073] [NEW] "calm function" inside source code

Hi,

pkg/dem/Shop.cpp should probably be the right place.
As an example, you can have a look, how "Shop::getSpheresMass" [1] and [2]
was implemented, it can be also useful to keep "mask" parameter for more
flexibility.

Do not forget to add a python-wrapper for this function into
py/_utils.cpp [3] and [4].

Have a luck!

Anton

[1] https://github.com/yade/trunk/blob/master/pkg/dem/Shop.hpp#L59
[2] https://github.com/yade/trunk/blob/master/pkg/dem/Shop.cpp#L295
[3] https://github.com/yade/trunk/blob/master/py/_utils.cpp#L404
[4] https://github.com/yade/trunk/blob/master/py/_utils.cpp#L456