← Back to team overview

yade-users team mailing list archive

Re: [Question #661971]: Facing problem with "target porosity part" in triaxial test script

 

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

Jérôme Duriez proposed the following answer:
Thanks for the clarification, this kind of error essentially means
you're calling an addPlotData function which is not known, i.e. defined,
at the time you call it. (it is not really YADE-specific, that's a
normal behavior for a computer)


Indeed, the definition of addPlotData() here comes at the end of your script, after the first O.run() commands, hence after the first calls to addPlotData().


You have to move the definition of addPlotData() at a suitable place, ie before any O.run (before that the PyRunner calling addPlotData could be executed, strictly speaking)


Jérôme

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