Re: Potential energy of gas particles in the adiabatic collapse example

From: Sander Valcke <Sander.Valcke_at_UGent.be>
Date: Fri, 27 Feb 2009 15:03:12 +0100

Hi Oscar,

did you add a piece of code reading the potential data in read_snapshot.c?

you can check if the data is written to the snapshot correctly by
examining what happens in io.c around line 305.

kind regards,

Sander

O.A. Vaquero wrote:
>
> Hi everybody,
>
> Well, I am just starting to play with Gadget 2.0.3, and it seems that
> after activating the options to compute the potential energy in the
> Makefile and creating the binary, the potential energy of the
> particles is not stored in the field P[i].Potential, being the value
> that is stored
>
> 0.0 for all the particles, as read with read_snapshot.c. I just try to
> do a fprintf(stdout, "%f\n", P[i].Potential) in a loop, and it returns
> me for
> all the particles 0.00000.
>
> Can anyone help me?
> Thank you very much in advance.
>
> Cheers,
>
> Oscar
>
>
>
>
> -----------------------------------------------------------
> 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 2009-02-27 15:17:57

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