← Back to team overview

yade-dev team mailing list archive

Re: Meaning of isFresh()?

 


void Interaction::reset(){
	interactionGeometry=shared_ptr<InteractionGeometry>();
	interactionPhysics=shared_ptr<InteractionPhysics>();
	init();
}

After this, the interaction is still Real, it has Ip and Ig.

void Interaction::init(){
	isNeighbor = true;
	iterMadeReal=-1;
	functorCache.geomExists=true;
}

It is not fresh, since iterMadeReal!=currentIteration.

At the next step, it will be seen as "wasReal" and "hadPhys", so iterMadeReal will be always -1, and it will never be fresh again.
Am I getting something wrong?

Bruno



Follow ups

References