5 rIJ = molI->position() - molJ->position();
7 rIJMagSq = magSqr(rIJ);
9 if (pairPotentials_.rCutSqr(idI, idJ, rIJMagSq))
15 // Guard against pairPotentials_.energy being evaluated
16 // if rIJMag < SMALL. A floating point exception will
21 WarningIn("moleculeCloud::removeHighEnergyOverlaps()")
22 << "Real molecule pair "
24 << " at position " << molI->position()
26 << " at position " << molJ->position()
27 << " are closer than " << SMALL
28 << ": mag separation = " << rIJMag
29 << ". These may have been placed on top of each"
30 << " other by a rounding error in molConfig in parallel"
31 << " or a block filled with molecules twice."
32 << " Removing one of the molecules."
38 // Guard against pairPotentials_.energy being evaluated
39 // if rIJMag < rMin. A tabulation lookup error will occur otherwise.
41 if (rIJMag < pairPotentials_.rMin(idI, idJ))
50 pairPotentials_.energy(idI, idJ, rIJMag) > potentialEnergyLimit_
63 || findIndex(removalOrder_, idJ) < findIndex(removalOrder_, idI)
66 if (findIndex(molsToDelete, molJ) == -1)
68 molsToDelete.append(molJ);
73 if (findIndex(molsToDelete, molI) == -1)
75 molsToDelete.append(molI);