yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #19248
Re: [Question #679154]: run FEMxDEM examples
Question #679154 on Yade changed:
https://answers.launchpad.net/yade/+question/679154
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
execfile(script,globals())
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__
self.__pde.getSolverOptions().setSolverMethod(SolverOptions.DIRECT)
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.
https://github.com/yade/trunk/blob/master/py/FEMxDEM/msFEM2D.py#L68
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.