Skip to content
Snippets Groups Projects
Commit 17121a46 authored by mattijs's avatar mattijs
Browse files

Corrected checking of component

parent 4bdd2402
No related merge requests found
...@@ -176,7 +176,7 @@ void surfaceSlipDisplacementPointPatchVectorField::calcProjection ...@@ -176,7 +176,7 @@ void surfaceSlipDisplacementPointPatchVectorField::calcProjection
// Knock out any wedge component // Knock out any wedge component
scalarField offset(start.size(), 0.0); scalarField offset(start.size(), 0.0);
if (wedgePlane_ >= 0 && wedgePlane_ <= vector::nComponents) if (wedgePlane_ >= 0 && wedgePlane_ < vector::nComponents)
{ {
forAll(offset, i) forAll(offset, i)
{ {
...@@ -262,7 +262,7 @@ void surfaceSlipDisplacementPointPatchVectorField::calcProjection ...@@ -262,7 +262,7 @@ void surfaceSlipDisplacementPointPatchVectorField::calcProjection
if (interPt.hit()) if (interPt.hit())
{ {
if (wedgePlane_ >= 0 && wedgePlane_ <= vector::nComponents) if (wedgePlane_ >= 0 && wedgePlane_ < vector::nComponents)
{ {
interPt.rawPoint()[wedgePlane_] += offset[i]; interPt.rawPoint()[wedgePlane_] += offset[i];
} }
......
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