LAMMPS WWW Site - LAMMPS Documentation - LAMMPS Mailing List Archives
Re: [lammps-users] pair-style-code-question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lammps-users] pair-style-code-question


From: Axel Kohlmeyer <akohlmey@...24...>
Date: Wed, 11 Apr 2018 11:56:01 -0400

On Wed, Apr 11, 2018 at 11:40 AM, Diaz,Adrian <adriandiaz@...1447...> wrote:
> Greetings,
>
> what is the intent of this bit-wise operation on the neighbor index "j &=
> NEIGHMASK;" ?

to remove the bits that are added to the neighbor list index for
signaling 1-2, 1-3, or 1-4 neighbors.
without, your index would be *waaaay* out of bounds for any pair
involved in bonds.

axel.

>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> lammps-users mailing list
> lammps-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/lammps-users
>



-- 
Dr. Axel Kohlmeyer  akohlmey@...24...  http://goo.gl/1wk0
College of Science & Technology, Temple University, Philadelphia PA, USA
International Centre for Theoretical Physics, Trieste. Italy.