Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

surf1 example #9

Closed
zoheir1928 opened this issue Jan 7, 2020 · 1 comment
Closed

surf1 example #9

zoheir1928 opened this issue Jan 7, 2020 · 1 comment

Comments

@zoheir1928
Copy link

Hi Jan,
I am trying to run your example: surf1
When I run the makefile, I get the following error:
I would appreciate you helping me out here.
Zoheir

~/FEMDEM/Installation/_build/install$ make -f makefile all

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 4, in
stats = StatsWrapper('/tmp/surf1.pro')
File "/home/zoheir/FEMDEM/Installation/_build/install/profiler.py", line 12, in init
self.stats = Stats(fName).stats
File "/usr/lib/python2.7/pstats.py", line 81, in init
self.init(arg)
File "/usr/lib/python2.7/pstats.py", line 95, in init
self.load_stats(arg)
File "/usr/lib/python2.7/pstats.py", line 109, in load_stats
f = open(arg, 'rb')
IOError: [Errno 2] No such file or directory: '/tmp/surf1.pro'
makefile:56: recipe for target 'profile' failed
make: *** [profile] Error 1

@stranskyjan
Copy link
Owner

sorry, there were commented important lines, thanks for reporting, should work now
cheers
Jan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants