> > 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@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-dev More help : https://help.launchpad.net/ListHelp