From 5738240cf0bda5a94d289be9efefe7d7d29bb059 Mon Sep 17 00:00:00 2001 From: mattijs Date: Fri, 3 May 2013 11:13:12 +0100 Subject: [PATCH] BUG: globalIndex: whichProcID bug --- src/OpenFOAM/meshes/polyMesh/globalMeshData/globalIndexI.H | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OpenFOAM/meshes/polyMesh/globalMeshData/globalIndexI.H b/src/OpenFOAM/meshes/polyMesh/globalMeshData/globalIndexI.H index fcdb56cfc1..e194d995a8 100644 --- a/src/OpenFOAM/meshes/polyMesh/globalMeshData/globalIndexI.H +++ b/src/OpenFOAM/meshes/polyMesh/globalMeshData/globalIndexI.H @@ -122,7 +122,7 @@ inline Foam::label Foam::globalIndex::toLocal(const label i) const inline Foam::label Foam::globalIndex::whichProcID(const label i) const { - if (i < 0 || i >= offsets_.size()-1) + if (i < 0 || i >= size()) { FatalErrorIn("globalIndex::whichProcID(const label)") << "Global " << i << " does not belong on any processor."