diff --git a/src/sampling/probes/probes.C b/src/sampling/probes/probes.C index 608049c7f7..7da9108188 100644 --- a/src/sampling/probes/probes.C +++ b/src/sampling/probes/probes.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -28,6 +28,7 @@ License #include "dictionary.H" #include "Time.H" #include "IOmanip.H" +#include "mapPolyMesh.H" // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // @@ -41,6 +42,11 @@ defineTypeNameAndDebug(probes, 0); void Foam::probes::findElements(const fvMesh& mesh) { + if (debug) + { + Info<< "probes: resetting sample locations" << endl; + } + elementList_.clear(); elementList_.setSize(size()); @@ -92,7 +98,7 @@ void Foam::probes::findElements(const fvMesh& mesh) { const vector& location = operator[](probeI); label cellI = elementList_[probeI]; - label faceI = faceList_[probeI]; + label faceI = faceList_[probeI]; // Check at least one processor with cell. reduce(cellI, maxOp