Re: endrun(888) problem

From: Ali Snedden <>
Date: Wed, 7 May 2014 11:03:01 -0400

Hello Arlindo,

It would be nice to know which line it actually breaks at. You could use a
debugger like Gdb or just change the values passed to each line that has

It is worth your time to learn how to use a debugger. From my personal
experience, using a debugger has probably cut my development time between
30-50% compared with just using print statements.

To use Gdb for a parallel program. First compile Gadget with the '-g'
compiler option. Then enter the following into your command line.

        mpirun -np 2 xterm -geometry 100x62 -sb -sl 10000 -e gdb ./Gadget2

I added a bunch of extra options to customize the x11 window. Then in each
of your two x11 windows enter the command line arguments (i.e. pass your
parameter file).

         start lcdm.param

Then you can set breakpoints and do other neat things by following these
helpful websites.

Best Regards

On Wed, May 7, 2014 at 10:42 AM, Arlindo Trindade _at_ gmail <> wrote:

> Hi all,
> I'm trying to running some N-body simulation tests with Gadget 2 on a
> cluster. The simulation is very very small, the number of particles is
> N=2*16^3 ( dark matter + gas) and the boxsize is L=3.125 Mpc. However I get
> a endrun 888 error. The same thing happens if I increase the size of the
> simulation ( both L and N). I've identified the files where the function
> endrun is called with the code 888 ( timestep.c lines 482 and 530,
> forcetree.c line 371) but I still can't understand what the problem is and
> thus I can't solve this problem.
> Does anyone has a suggestion?
> Cheers,
> Arlindo
> -----------------------------------------------------------
> If you wish to unsubscribe from this mailing, send mail to
> with a subject of: unsubscribe gadget-list
> A web-archive of this mailing list is available here:
Received on 2014-05-07 17:03:07

This archive was generated by hypermail 2.3.0 : 2023-01-10 10:01:32 CET