Re: Issue with "LEAN" option in "shared_mem_handler.cc"

From: Volker Springel <vspringel_at_MPA-Garching.MPG.DE>
Date: Wed, 23 Dec 2020 17:10:16 +0100

Dear Leonard,

Yes, the contents of the All structure are not necessarily available on the ghost ranks that are assigned for the shared memory handler loop. One can however change this. I have added an initialization of All on the ghost ranks at the end of the begrun2() function, which in principle should allow you to call getMass() now also on these ghost ranks.

Best regards,
Volker

> On 23. Dec 2020, at 00:11, Leonard Romano <leonard.romano_at_tum.de> wrote:
>
>
> Dear All,
>
> I noticed that when I run DMO-simulations with Gadget 4 on multiple nodes with
> the "LEAN" option, foreign particles are fetched with mass=0.
> When I print "All.PartMass" from within the shared_memory_handler loop
> it prints zero, while if I print it in other functions on compute ranks it prints
> the value I specify in the mass table of my initial condition file.
> It seems plausible to me that All.PartMass is just not set to any value on the ghost_ranks
> (which enter the loop before the parameter file is read in).
> Is my understanding correct and one should thus not access the mass of a particle with
> "getMass()" within the shared_memory_handler loop?
>
> Best Regards,
> Leonard Romano
>
>
>
>
> -----------------------------------------------------------
> 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 2020-12-23 17:10:17

This archive was generated by hypermail 2.3.0 : 2022-09-01 14:03:43 CEST