diff --git a/src/OpenFOAM/algorithms/octree/octree/treeBoundBoxI.H b/src/OpenFOAM/algorithms/octree/octree/treeBoundBoxI.H index e826221ac..69a240826 100644 --- a/src/OpenFOAM/algorithms/octree/octree/treeBoundBoxI.H +++ b/src/OpenFOAM/algorithms/octree/octree/treeBoundBoxI.H @@ -361,7 +361,7 @@ inline Foam::treeBoundBox Foam::treeBoundBox::extend(const scalar s) const for (direction dir = 0; dir < vector::nComponents; dir++) { - span[dir] = Foam::max(s*magSpan, span[dir]); + span[dir] = Foam::max(magSpan, span[dir]); } bb.min() -= cmptMultiply(s*vector::one, span);