gandalfcode / gandalf

GANDALF (Graphical Astrophysics code for N-body Dynamics And Lagrangian Fluids)
GNU General Public License v2.0
46 stars 12 forks source link

How to fix this problem? #183

Closed ghost closed 6 years ago

ghost commented 6 years ago

after I run the code on page 15 in this pdf on my Linux system: https://indico.ph.tum.de/event/3630/contributions/2341/attachments/2122/2257/Hubber.pdf

I got the error message below:

File "/usr/local/lib/python2.7/dist-packages/gandalf/analysis/SimBuffer.py", line 158, in newsim raise BufferException("You need to specify either a parameter file, or ndim and simtype")

BufferException: You need to specify either a parameter file, or ndim and simtype

But I have already set "sim = newsim(ndim=1)" in the file, like the pdf did, how can I deal with this problem? Thanks.