Question #432617 on Yade changed: https://answers.launchpad.net/yade/+question/432617
Status: Open => Answered Luc Scholtès proposed the following answer: Apparently, you divide something by zero... Did you check the value of sumCohBonds by printing it before using it in your function damageRatio? Type print sumCohBonds just after its calculation in your script and you should see its value in the terminal. Actually, did you compute it at iteration 0 of your simulation or at iteration 1? I guess it is null at iteration 0 since the contacts haven't been looped over yet. Try O.step() just before computing sumCohBonds and let me know. Luc -- You received this question notification because your team yade-users is an answer contact for Yade. _______________________________________________ Mailing list: https://launchpad.net/~yade-users Post to : yade-users@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-users More help : https://help.launchpad.net/ListHelp