Skip to content
Snippets Groups Projects
Commit c29b236d authored by graham's avatar graham
Browse files
parent f6e23209
No related merge requests found
...@@ -119,8 +119,6 @@ void Foam::directInteractionList::buildDirectInteractionList ...@@ -119,8 +119,6 @@ void Foam::directInteractionList::buildDirectInteractionList
const label cellO(mesh.faceOwner()[f]); const label cellO(mesh.faceOwner()[f]);
const label cellN(mesh.faceNeighbour()[f]);
forAll(pCells, pC) forAll(pCells, pC)
{ {
const label cellI(pCells[pC]); const label cellI(pCells[pC]);
...@@ -156,6 +154,8 @@ void Foam::directInteractionList::buildDirectInteractionList ...@@ -156,6 +154,8 @@ void Foam::directInteractionList::buildDirectInteractionList
// boundary faces will not have neighbour // boundary faces will not have neighbour
// information // information
const label cellN(mesh.faceNeighbour()[f]);
if (cellN > cellI) if (cellN > cellI)
{ {
if if
......
...@@ -225,7 +225,7 @@ const Foam::pairPotential& Foam::pairPotentialList::pairPotentialFunction ...@@ -225,7 +225,7 @@ const Foam::pairPotential& Foam::pairPotentialList::pairPotentialFunction
bool Foam::pairPotentialList::rCutMaxSqr(const scalar rIJMagSqr) const bool Foam::pairPotentialList::rCutMaxSqr(const scalar rIJMagSqr) const
{ {
if (rIJMagSqr <= rCutMaxSqr_) if (rIJMagSqr < rCutMaxSqr_)
{ {
return true; return true;
} }
...@@ -243,7 +243,7 @@ bool Foam::pairPotentialList::rCutSqr ...@@ -243,7 +243,7 @@ bool Foam::pairPotentialList::rCutSqr
const scalar rIJMagSqr const scalar rIJMagSqr
) const ) const
{ {
if (rIJMagSqr <= rCutSqr (a, b)) if (rIJMagSqr < rCutSqr (a, b))
{ {
return true; return true;
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment