Merge branch 'develop' of develop.openfoam.com:Development/OpenFOAM-plus into develop

This commit is contained in:
mattijs
2017-06-14 09:06:49 +01:00
206 changed files with 10736 additions and 599 deletions

View File

@ -200,6 +200,9 @@ void Foam::patchProbes::findElements(const fvMesh& mesh)
processor_.setSize(nearest.size());
processor_ = -1;
processor_.setSize(size());
processor_ = -1;
forAll(nearest, sampleI)
{
processor_[sampleI] = nearest[sampleI].second().second();
@ -207,7 +210,10 @@ void Foam::patchProbes::findElements(const fvMesh& mesh)
{
// Store the face to sample
faceList_[sampleI] = nearest[sampleI].first().index();
label facei = faceList_[sampleI];
processor_[sampleI] = (facei != -1 ? Pstream::myProcNo() : -1);
}
reduce(processor_[sampleI], maxOp<label>());
}
}