sabago / pysph

Automatically exported from code.google.com/p/pysph
0 stars 0 forks source link

Examples not running in current checkout. #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
--------------------------------------

    1. Run dam_break_2d.py after checking out code afresh from repo.
    2. The image_solve.py i had mailed a few days ago also does not run and produces the same error as detailed below.

What is the expected output? What do you see instead?
-----------------------------------------------------

The script produces the following error:

Traceback (most recent call last):
  File "../../examples/dam_break_2d.py", line 94, in <module>
    solver.solve()
  File "solver_base.pyx", line 859, in pysph.solver.solver_base.SolverBase.solve (source/pysph/solver/solver_base.c:12533)
  File "solver_base.pyx", line 883, in pysph.solver.solver_base.SolverBase.solve (source/pysph/solver/solver_base.c:12367)
  File "integrator_base.pyx", line 1008, in pysph.solver.integrator_base.Integrator.integrate (source/pysph/solver/integrator_base.c:13388)
  File "integrator_base.pyx", line 1012, in pysph.solver.integrator_base.Integrator.integrate (source/pysph/solver/integrator_base.c:13356)
  File "integrator_base.pyx", line 998, in pysph.solver.integrator_base.Integrator.compute (source/pysph/solver/integrator_base.c:13244)
  File "runge_kutta_integrator.pyx", line 125, in pysph.solver.runge_kutta_integrator.RK2Integrator.setup_component (source/pysph/solver/runge_kutta_integrator.c:4238)
  File "integrator_base.pyx", line 770, in pysph.solver.integrator_base.Integrator._setup_step (source/pysph/solver/integrator_base.c:10681)
  File "integrator_base.pyx", line 760, in pysph.solver.integrator_base.Integrator._setup_property_steppers (source/pysph/solver/integrator_base.c:10589)
  File "integrator_base.pyx", line 818, in pysph.solver.integrator_base.Integrator._setup_property (source/pysph/solver/integrator_base.c:11114)
  File "/home/shekhar/work/SOURCES/pysph/source/pysph/solver/utils.py", line 13, in extract_entity_names
    r = l[0]
IndexError: list index out of range

Original issue reported on code.google.com by shekhar....@gmail.com on 31 Aug 2010 at 11:30

GoogleCodeExporter commented 9 years ago
Hi Shekhar,
Thanks for the report (and the cool image_solver script).
Actually this problem was the subject of my last two commits :)
Hopefully it's fixed now, can you try the commit 433191c979, its working for me 
here

Original comment by pankaj86 on 31 Aug 2010 at 4:52

GoogleCodeExporter commented 9 years ago

Original comment by pankaj86 on 23 Oct 2010 at 12:26