LAMMPS WWW Site - LAMMPS Documentation - LAMMPS Mailing List Archives
Re: [lammps-users] force_communication
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lammps-users] force_communication


From: "Diaz,Adrian" <adriandiaz@...1447...>
Date: Fri, 4 May 2018 05:58:20 +0000

The reverse communication routine you're looking for is declared in the atom vec class rather than the pair style class. The reverse communication for pair is used in some instances for properties that were not declared in the atom vec class such as the electron density for EAM; in this situation the pair style will call reverse communication to accumulate the electron density as can be seen in the code for EAM.


From: Cunzhi Zhang <zcz1005@...2045...>
Sent: Friday, May 4, 2018 1:15:00 AM
To: Axel Kohlmeyer
Cc: LAMMPS
Subject: Re: [lammps-users] force_communication
 
Thanks


> On May 3, 2018, at 1:00 PM, Axel Kohlmeyer <akohlmey@...24...> wrote:
>
> On Thu, May 3, 2018 at 1:03 PM, Cunzhi Zhang <zcz1005@...2045...> wrote:
>> Dear lammps community
>>
>>        I am reading some pair force codes. the force is calculated locally for myatom (i < local), but also we have force for ghost atoms (in pair). However I did not find any pack/unpack_reverse_comm function in pair*.cpp to reduce the force of ghost atoms. So could anyone point out how lammps deal with force communication between different processors?
>
>
> integrator and minimizer styles call comm->reverse_comm() (and only if
> newton_pair is true). note, that this is not
> comm->reverse_comm_pair(), so it knows which data to collect and
> communicate.
>
> axel.
>
>>
>> Thanks
>> Cunzhi
>> ------------------------------------------------------------------------------
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! https://urldefense.proofpoint.com/v2/url?u=http-3A__sdm.link_slashdot&d=DwICAg&c=pZJPUDQ3SB9JplYbifm4nt2lEVG5pWx2KikqINpWlZM&r=SlEk-uQTWtidkuXSRgwfkNoZ7UQziaigd_WQGbfxNfc&m=iNnu5Y31HRbVx3c0rHyPk_uHq6YKimLpeLey7TVx4hM&s=sX9eJef1ufGCVHAglaQZkTYUTgVjVCqBMEg6laXZF3A&e=
>> _______________________________________________
>> lammps-users mailing list
>> lammps-users@lists.sourceforge.net
>> https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.sourceforge.net_lists_listinfo_lammps-2Dusers&d=DwICAg&c=pZJPUDQ3SB9JplYbifm4nt2lEVG5pWx2KikqINpWlZM&r=SlEk-uQTWtidkuXSRgwfkNoZ7UQziaigd_WQGbfxNfc&m=iNnu5Y31HRbVx3c0rHyPk_uHq6YKimLpeLey7TVx4hM&s=EjHOeUjHdkap_8CWeWPieArLC7H3npk033Uwuj1lpvQ&e=
>
>
>
> --
> Dr. Axel Kohlmeyer  akohlmey@...24...  https://urldefense.proofpoint.com/v2/url?u=http-3A__goo.gl_1wk0&d=DwICAg&c=pZJPUDQ3SB9JplYbifm4nt2lEVG5pWx2KikqINpWlZM&r=SlEk-uQTWtidkuXSRgwfkNoZ7UQziaigd_WQGbfxNfc&m=iNnu5Y31HRbVx3c0rHyPk_uHq6YKimLpeLey7TVx4hM&s=n_DRQwcLu_8frSCsqgDAKSRQT1xiK3tVv_JeA_yuODc&e=
> College of Science & Technology, Temple University, Philadelphia PA, USA
> International Centre for Theoretical Physics, Trieste. Italy.


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! https://urldefense.proofpoint.com/v2/url?u=http-3A__sdm.link_slashdot&d=DwICAg&c=pZJPUDQ3SB9JplYbifm4nt2lEVG5pWx2KikqINpWlZM&r=SlEk-uQTWtidkuXSRgwfkNoZ7UQziaigd_WQGbfxNfc&m=iNnu5Y31HRbVx3c0rHyPk_uHq6YKimLpeLey7TVx4hM&s=sX9eJef1ufGCVHAglaQZkTYUTgVjVCqBMEg6laXZF3A&e=
_______________________________________________
lammps-users mailing list
lammps-users@lists.sourceforge.net
https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.sourceforge.net_lists_listinfo_lammps-2Dusers&d=DwICAg&c=pZJPUDQ3SB9JplYbifm4nt2lEVG5pWx2KikqINpWlZM&r=SlEk-uQTWtidkuXSRgwfkNoZ7UQziaigd_WQGbfxNfc&m=iNnu5Y31HRbVx3c0rHyPk_uHq6YKimLpeLey7TVx4hM&s=EjHOeUjHdkap_8CWeWPieArLC7H3npk033Uwuj1lpvQ&e=