PyRunner can't find a function
I am a beginner with YADE. I tried to add PyRunner to Engines but it doesn't work properly. The code does not work:
~~~~~~~
O.bodies.
O.bodies.
O.bodies.
def myrun():
print 'hello world :)'
O.engines=[
ForceResetter(),
InsertionSor
InteractionLoop(
# handle sphere+sphere and facet+sphere collisions
[
[
[
),
GravityEngin
NewtonIntegr
PyRunner(
]
O.dt=0.000001
O.saveTmp()
~~~~~~~
An error message appears: "name 'myrun' is not defined"
The same problem occurs when I copy/paste the code from the "Gravity deposition" example. PyRunner can't find the function. What can it be? Thank you
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Jérôme Duriez
- Solved:
- Last query:
- Last reply: