What does 'rMean=-1' mean

Asked by Leonard on 2019-09-17

Hi,
I'd like to ask a stupid question about the meaning of ' someValue = -1', for example, in makeCloud [1], what does 'rMean=-1' and 'num=-1' mean?

Thanks

Leonard

[1] https://yade-dev.gitlab.io/trunk/yade.pack.html?highlight=sp%20makecloud#yade._packSpheres.SpherePack.makeCloud

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
Robert Caulk
Solved:
2019-09-17
Last query:
2019-09-17
Last reply:
2019-09-17
Best Robert Caulk (rcaulk) said : #1

It is the default value passed to the function in the case that the user does not provide it. In this case '-1' is essentially a flag to direct the algorithm toward one of the four described methods of sphere radius distribution specification.

Leonard (z2521899293) said : #2

Thanks Robert Caulk, that solved my question.

Rong Zhao (zhaorong) said : #3

Hi, Robert Caulk. You said that '-1' is essentially a flag to direct the algorithm toward one of the four described methods of sphere radius distribution specification. But what is the algorithm it directs by -1 actually?

Robert Caulk (rcaulk) said : #4

>But what is the algorithm it directs by -1 actually?

I don't understand the question. It directs the makecloud algorithm [1] to which of the four methods it should use for sphere radius distribution.

[1] https://gitlab.com/yade-dev/trunk/blob/master/pkg/dem/SpherePack.cpp#L106