Hi,
Certain operating systems return "0" (failure) when one tries to
allocate 0 bytes, while others return something non-zero (success).
The version of gadget you're using - which is apparently not the public
one - assumes the latter (which is unsafe and not fully portable). For
the moment, you can change the line
ptr = malloc(n);
to
ptr = malloc(n + 1);
in the function mymalloc() in file mymalloc.c
This should fix it.
Volker
Joerg Colberg wrote:
> Hi all,
>
> I'm trying to do something extremely simple, namely to run a large
> DM only simulation, but somehow it seems I can't get the parameters
> for the code st up properly. The code stops with
>
> domain decomposition...
> NTopleaves= 54272
> work-load balance=1.00998 memory-balance=1.00998
> exchange of 0132131903 particles
> failed to allocate 0 MB of memory.
> task 24: endrun called with an error level of 14
>
> This is for a 512**3 run, on a pretty large system. This is probably
> quite trivial a problem. Does anybody have an idea how I can fix this?
>
> Thanks!
>
> Best,
> Joerg
>
>
>
>
> -----------------------------------------------------------
>
> If you wish to unsubscribe from this mailing, send mail to
> minimalist_at_MPA-Garching.MPG.de with a subject of: unsubscribe gadget-list
> A web-archive of this mailing list is available here:
> http://www.mpa-garching.mpg.de/gadget/gadget-list
Received on 2006-02-13 15:31:42