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

From: Leonard Romano <leonard.romano_at_tum.de>
Date: Wed, 23 Dec 2020 18:04:17 +0100

Dear Volker,

Thank you for your reply and the update in the code!
I can verify that now getMass() now returns the desired value on
ghost ranks not just in principle, but in practice as well .

Best regards,
Leonard

I wish everyone on this mailing list merry holidays and a happy new year!

On 23.12.20 17:10, Volker Springel wrote:
> 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
>
>
>
> -----------------------------------------------------------
>
> 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 18:04:23

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