Skip to content

Commit

Permalink
convert another 'or' to ||
Browse files Browse the repository at this point in the history
  • Loading branch information
stefdoerr committed Jan 21, 2025
1 parent 869ac2c commit f0ee58b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torchmdnet/extensions/neighbors/neighbors_cuda_cell.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ __device__ void addNeighborsForCell(const Particle<scalar_t>& i_atom, int j_cell
list.use_periodic, box_size);
const scalar_t distance2 =
delta.x * delta.x + delta.y * delta.y + delta.z * delta.z;
if ((distance2 < i_atom.cutoff_upper2 && distance2 >= i_atom.cutoff_lower2) or
if ((distance2 < i_atom.cutoff_upper2 && distance2 >= i_atom.cutoff_lower2) ||
(list.loop && cur_j == i_atom.index)) {
const int orj = cl.sorted_indices[cur_j];
addNeighborPair(list, i_atom.original_index, orj, distance2, delta);
Expand Down

0 comments on commit f0ee58b

Please sign in to comment.