← Back to team overview

yade-users team mailing list archive

Re: [Question #432617]: How to plot damage ratio curve

 

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

    Status: Open => Answered

Luc Scholtès proposed the following answer:
Hum...

A stupid question but do you initialize numBroCohBonds to zero each time
you compute it? What happens if you include a print numBroCohBonds
inside your function, just before the loop?

Also, you may need to define numBroCohBonds as a global variable in your
function (just add global numBroCohBonds just before the loop).

If this does not work, I could probably have a look at your script to
investigate your issue more precisely.

Luc

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