stranskyjan / dem-fem-coupling

Open source codes for coupling of Finite Element Method and Discrete Element Method using YADE, and OOFEM softwares.
43 stars 24 forks source link

Surfexample: getKeyByName and raise RuntimeError1 #11

Closed zoheir1928 closed 4 years ago

zoheir1928 commented 4 years ago

I get the following error when running surf1 example:

set usePolyhedra=True if poly option is set

use profiler or not

python -m cProfile -o /tmp/surf1.pro surf1.py

reset _yade.py script after running

sed -i 's/^usePolyhedra =./usePolyhedra = False/' surf1_yade.py python surf1_profile.py Traceback (most recent call last): File "surf1_profile.py", line 5, in tot = stats.getKeyByName('solveAt','demfemcoupling.py') File "/home/zoheir/FEMDEM/Installation/_build/install/profiler.py", line 19, in getKeyByName raise RuntimeError RuntimeError makefile:56: recipe for target 'profile' failed make: *** [profile] Error 1

I would appreciate your thoughts

Cheers, Zoheir

stranskyjan commented 4 years ago

Hi, this was because the line generating the profiling info was commented in in the Makefile, but was uncommented in this commit. It should work with the new code. Jan