← Back to team overview

yade-users team mailing list archive

Re: [Question #679154]: run FEMxDEM examples


Question #679154 on Yade changed:

jamespaul posted a new comment:
Thanks Janek,

I changed my command as follows

1 sudo apt install python-escript
2 cd /usr/share/doc/yade/examples/FEMxDEM
3 export PYTHONPATH="/usr/lib/python-escript:/usr/lib/x86_64-linux-gnu/yade/py/yade/FEMxDEM"
4 export LD_LIBRARY_PATH=/usr/lib/python-escript/lib 
5 ln -s /usr/bin/yade /usr/lib/x86_64-linux-gnu/yade/py/yade/FEMxDEM/yadeimport.py
6 /usr/bin/yade ./biaxialSmooth.py

It works ,but the error is reported

Running script ./biaxialSmooth.py
Traceback (most recent call last):
  File "/usr/bin/yade", line 182, in runScript
  File "./biaxialSmooth.py", line 22, in <module>
    prob = MultiScale(domain=mydomain,ng=numg,np=nump,random=False,rtol=1e-2,usePert=False,pert=-2.e-5,verbose=True)
  File "/usr/lib/x86_64-linux-gnu/yade/py/yade/FEMxDEM/msFEM2D.py", line 67, in __init__
ValueError: Cannot use DIRECT solver method, the running escript was not compiled with a direct solver enabled

I think my input is correct,but the function here has some problem.

I am curious why the 68th line hasn't an output.

Thanks in advance.

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