This commit is contained in:
Axel Kohlmeyer
2025-07-04 18:14:08 -04:00
parent 7ce7990bf9
commit a85906236c

View File

@ -661,7 +661,7 @@ void FixNeighborSwap::build_i_neighbor_list(int i_center)
// Get distance if own center atom
double r = INFINITY;
if (i_center >= 0) = sqrt(distsq3(x[temp_j], x[i_center]));
if (i_center >= 0) r = sqrt(distsq3(x[temp_j], x[i_center]));
// Get local id of ghost center atom when ghost
for (int i = nlocal; i < nlocal + nghost; i++) {