← Back to team overview

yade-dev team mailing list archive

Re: isFresh

 

> just to be sure, if I need to ask if the interaction has just been
> created (so that it is new) should I use isFresh? If so, is this
> exaclty the same as asking if both the geometry and physics functors
> have just been instantiated? 

Yes, that's exactly it; if you look at Interaction::isFresh()
definition, it checks Interaction::iterMadeReal, which is assigned in
InteractionDispatchers if the interaction was potential and now has both
geom and phys created.

It was meant to be used in constitutive laws, to initialize stuff as
needed.

Cheers, v.






References