← Back to team overview

yade-users team mailing list archive

Re: [Question #688885]: Finding where a bond broke

 

Question #688885 on Yade changed:
https://answers.launchpad.net/yade/+question/688885

Jan Stránský posted a new comment:
Just a performance hint, use python set (not list) for this kind of task. In your case, storing (i.id1,i.id2) tuple into the set should perform well. You can then easily do set difference to find broken bonds.
cheers
Jan

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.