diff --git a/src/OpenFOAM/meshes/polyMesh/syncTools/syncTools.H b/src/OpenFOAM/meshes/polyMesh/syncTools/syncTools.H index cb1484b3b0..286bfb9a50 100644 --- a/src/OpenFOAM/meshes/polyMesh/syncTools/syncTools.H +++ b/src/OpenFOAM/meshes/polyMesh/syncTools/syncTools.H @@ -3,7 +3,7 @@ \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation - \\/ M anipulation | + \\/ M anipulation | Copyright (C) 2015 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -164,7 +164,8 @@ public: const polyMesh&, UList&, const CombineOp& cop, - const TransformOp& top + const TransformOp& top, + const bool parRun = Pstream::parRun() ); @@ -556,7 +557,8 @@ public: ( const polyMesh& mesh, PackedList& faceValues, - const CombineOp& cop + const CombineOp& cop, + const bool parRun = Pstream::parRun() ); template diff --git a/src/OpenFOAM/meshes/polyMesh/syncTools/syncToolsTemplates.C b/src/OpenFOAM/meshes/polyMesh/syncTools/syncToolsTemplates.C index f9b90ae0a1..e729520288 100644 --- a/src/OpenFOAM/meshes/polyMesh/syncTools/syncToolsTemplates.C +++ b/src/OpenFOAM/meshes/polyMesh/syncTools/syncToolsTemplates.C @@ -3,7 +3,7 @@ \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation - \\/ M anipulation | + \\/ M anipulation | Copyright (C) 2015 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -1316,7 +1316,8 @@ void Foam::syncTools::syncBoundaryFaceList const polyMesh& mesh, UList& faceValues, const CombineOp& cop, - const TransformOp& top + const TransformOp& top, + const bool parRun ) { const label nBFaces = mesh.nFaces() - mesh.nInternalFaces(); @@ -1327,7 +1328,7 @@ void Foam::syncTools::syncBoundaryFaceList ( "syncTools::syncBoundaryFaceList" "(const polyMesh&, UList&, const CombineOp&" - ", const bool)" + ", const TransformOp&, const bool)" ) << "Number of values " << faceValues.size() << " is not equal to the number of boundary faces in the mesh " << nBFaces << abort(FatalError); @@ -1335,7 +1336,7 @@ void Foam::syncTools::syncBoundaryFaceList const polyBoundaryMesh& patches = mesh.boundaryMesh(); - if (Pstream::parRun()) + if (parRun) { PstreamBuffers pBufs(Pstream::nonBlocking); @@ -1441,7 +1442,8 @@ void Foam::syncTools::syncFaceList ( const polyMesh& mesh, PackedList& faceValues, - const CombineOp& cop + const CombineOp& cop, + const bool parRun ) { if (faceValues.size() != mesh.nFaces()) @@ -1457,7 +1459,7 @@ void Foam::syncTools::syncFaceList const polyBoundaryMesh& patches = mesh.boundaryMesh(); - if (Pstream::parRun()) + if (parRun) { PstreamBuffers pBufs(Pstream::nonBlocking);