must always initialize jtag
This commit is contained in:
@ -226,13 +226,13 @@ int ComputePairLocal::compute_pairs(int flag)
|
|||||||
factor_lj = special_lj[sbmask(j)];
|
factor_lj = special_lj[sbmask(j)];
|
||||||
factor_coul = special_coul[sbmask(j)];
|
factor_coul = special_coul[sbmask(j)];
|
||||||
j &= NEIGHMASK;
|
j &= NEIGHMASK;
|
||||||
|
jtag = tag[j];
|
||||||
|
|
||||||
if (!(mask[j] & groupbit)) continue;
|
if (!(mask[j] & groupbit)) continue;
|
||||||
|
|
||||||
// itag = jtag is possible for long cutoffs that include images of self
|
// itag = jtag is possible for long cutoffs that include images of self
|
||||||
|
|
||||||
if (newton_pair == 0 && j >= nlocal) {
|
if (newton_pair == 0 && j >= nlocal) {
|
||||||
jtag = tag[j];
|
|
||||||
if (itag > jtag) {
|
if (itag > jtag) {
|
||||||
if ((itag+jtag) % 2 == 0) continue;
|
if ((itag+jtag) % 2 == 0) continue;
|
||||||
} else if (itag < jtag) {
|
} else if (itag < jtag) {
|
||||||
|
|||||||
Reference in New Issue
Block a user