yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #05180
Re: Meaning of isFresh()?
> > Yes, they are, of course (if you mean intrGeom and intrPhys).
> >
>
> You mean they ARE deleted?
void InteractionContainer::requestErase(body_id_t id1, body_id_t id2, bool force){
find(id1,id2)->reset();
/* ... */
}
void Interaction::reset(){
interactionGeometry=shared_ptr<InteractionGeometry>();
interactionPhysics=shared_ptr<InteractionPhysics>();
init();
}
void Interaction::init(){
isNeighbor = true;
iterMadeReal=-1;
functorCache.geomExists=true;
}
bool Interaction::isFresh(Scene* rb){ return iterMadeReal==rb->currentIteration;}
Follow ups
References