about indentation error in example of yade website

Asked by Alireza Sadeghi

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:
Last query:
Last reply:
Revision history for this message
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

Revision history for this message
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

Revision history for this message
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