> > I completely forgot about it but changing this should not be a problem. The > definition just needs to be changed to: > (shared_ptr<MatchMaker>,includeMoment,,,"bool to consider rolling resistance") Yes.
> > I could use 0 and 1 instead of False and True in the python script: > includeMoment=MatchMaker(matches=((mat1,mat1,1), (mat1,mat2,0)))) > > In the code we can use something like this to convert the Real to a Boolean: > > ((*includeMoment)(mat1->id,mat2->id) != 0) > > but this probably brakes the conventional way: > includeMoment=True > > What do you think? I don't see what it would break. Remember to keep the behavior unchanged in case includeMoment is none (in c++ the pointer will be null). > This script for example shows the use of MatchMaker: > examples/spheresFactory.py Yes the only one, but it more an example of SphereFactory. B _______________________________________________ Mailing list: https://launchpad.net/~yade-dev Post to : [email protected] Unsubscribe : https://launchpad.net/~yade-dev More help : https://help.launchpad.net/ListHelp

