← Back to team overview

yade-dev team mailing list archive

Functor arguments

 

Thinking about the problem in CohesiveFrictionalRelationship, why don't we simply pass body pointers to all functors (disregarding if it is supposed to work on state or materials)? It applies even for interactionGeometryFunctor. It takes material and state now, which is... a body!

It would be a lot more versatile.
Only problem : does it break the current implementation of shared materials? Would it break the functionality or the time/memory saved?

Bruno





Follow ups