← Back to team overview

yade-dev team mailing list archive

Re: Meaning of isFresh()?

 

It would be more usefull maybe to make isFresh() return (iterMR==iter || iterMR==-1). The interactions would be non-fresh only if it stays real for many iterations. Would it hurt?

B.

On 08/07/10 19:43, Bruno Chareyre wrote:
Haha!
Actually, iterMadeReal is set near the end of intDispatch, as a consequence a fresh interaction at iteration N will be seen non-fresh by Ip and Ig functors. This isFresh value is relevant only when entering the constitutive law, which is ok as long as everything is computed in the constitutive law itself, but useless in case of precomputing.
I'll have to find another test...
Thanks for replies.

Bruno




means it cannot be used


On 08/07/10 19:22, Bruno Chareyre wrote:

FYI:

bool isReal() const {return (bool)interactionGeometry&& (bool)interactionPhysics;}

Yes, yes. I read the code a little before asking questions, you know... ;-)

The sure thing is I get nan's normals for nonFresh interactions. Still searching the reason.

Bruno


_______________________________________________
Mailing list: https://launchpad.net/~yade-dev
Post to     : yade-dev@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~yade-dev
More help   : https://help.launchpad.net/ListHelp



_______________________________________________
Mailing list: https://launchpad.net/~yade-dev
Post to     : yade-dev@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~yade-dev
More help   : https://help.launchpad.net/ListHelp






Follow ups

References