about indentation error in example of yade website

Asked by Alireza Sadeghi on 2018-03-13

Hello,

I have a question about indentation error in loading example number two (Gravity deposition) of https://yade-dem.org/doc/tutorial-examples.html
When I run it, it say that unbalancedForce() is not defined!
why does this error appear?how can I fix it?
Does yade know how to define unbalancedForce() or I have to define for it?

Thank you very much for your help in advance.

Best Regards

Alireza

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
Alireza Sadeghi
Solved:
2018-03-13
Last query:
2018-03-13
Last reply:
2018-03-13
JOHN (washingmachine) said : #1

Hello,
I tested it myself and it didnt produce an error.
Is it possible that somehow during the copying process an indentation was lost?
Could you please paste your code?
Best Regards
John

Jan Stránský (honzik) said : #2

Hi Alireza,
please be more specific what your problem is. The title says intentation error, but in the question you mention that unbalancedForce is not defined..
What version of Yade and what operating system do you use?
How you run the example? saving it in a script and calling yade script.py or copy/pasting the commands into Yade interactive prompt?
Thanks for info
Jan

Alireza Sadeghi (asadeghime) said : #3

Hello Gentlemen,

Thank you very much for your help. I check it again and I found my mistakes. Thanks a lot.

Best Regards

Alireza