← Back to team overview

yade-dev team mailing list archive

Re: bool MatchMaker

 

Following your discussion. I would appreciate such possibility, too.

Alex

-----Ursprüngliche Nachricht-----
Von: Yade-dev [mailto:yade-dev-bounces+alexander.eulitz=iwf.tu-berlin.de@xxxxxxxxxxxxxxxxxxx] Im Auftrag von Klaus Thoeni
Gesendet: Mittwoch, 28. August 2013 14:20
An: yade-dev@xxxxxxxxxxxxxxxxxxx
Betreff: Re: [Yade-dev] bool MatchMaker

> > Another option is to make MatchMakers for krot and ktwist and set 
> > them to 0 so the moment will be 0. It might be an easier solution 
> > but not the most efficient.
> The best thing I can imagine is to add a MatchMaker that would not 
> replace includeMoment, let's call it momentMatch here.
> 
> if (includeMoment && (!momentMatch || (*momentMatch)(mat1,mat2)){
>     // ... the moment code
> }

Sounds good to me,  thanks for that.

BTW, don't you think it would make sense to make MatchMakers for most of the parameters in the IP2 functors? It would give more flexibility when working with different materials.

_______________________________________________
Mailing list: https://launchpad.net/~yade-dev
Post to     : yade-dev@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~yade-dev
More help   : https://help.launchpad.net/ListHelp


References