Fixing missing variable in multi

This commit is contained in:
jtclemm
2023-10-23 10:27:18 -06:00
parent 9ba20864ca
commit 14f0045567
2 changed files with 5 additions and 1 deletions

View File

@ -95,6 +95,8 @@ void NStencilMulti<HALF, DIM_3D, TRI>::create()
// Half and ortho stencils include central bin first
// This preserves the historical order of the neighbor list
// as the old npair classes used to separately parse the central bin first
// This !TRI condition (and the one below) are now unnecessary
// since triclinic only uses full stencils - kept the flags for clarity
if (HALF && (!TRI))
if (half_flag) stencil_multi[icollection][jcollection][ns++] = 0;
@ -119,7 +121,7 @@ void NStencilMulti<HALF, DIM_3D, TRI>::create()
}
}
}
if (bin_distance_multi(i,j,k,bin_collection) < cutsq)
if (bin_distance_multi(i, j, k, bin_collection) < cutsq)
stencil_multi[icollection][jcollection][ns++] = k * mbiny * mbinx + j * mbinx + i;
}
}