From 8a6461319756edc788ccdd9a0c7a0f7e94c0e9ea Mon Sep 17 00:00:00 2001 From: Hrvoje Jasak Date: Wed, 8 May 2019 11:48:51 +0100 Subject: [PATCH] Reverting debug change: file based communication replaced by Pstream. --- .../topoChangerFvMeshLoadBalance.C | 25 +++++-------------- 1 file changed, 6 insertions(+), 19 deletions(-) diff --git a/src/dynamicMesh/topoChangerFvMesh/topoChangerFvMesh/topoChangerFvMeshLoadBalance.C b/src/dynamicMesh/topoChangerFvMesh/topoChangerFvMesh/topoChangerFvMeshLoadBalance.C index 1d0ebb281..63349bb8a 100644 --- a/src/dynamicMesh/topoChangerFvMesh/topoChangerFvMesh/topoChangerFvMeshLoadBalance.C +++ b/src/dynamicMesh/topoChangerFvMesh/topoChangerFvMesh/topoChangerFvMeshLoadBalance.C @@ -35,9 +35,6 @@ License #include "cloudDistribute.H" #include "meshObjectBase.H" -#include "IFstream.H" -#include "OFstream.H" - // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // bool Foam::topoChangerFvMesh::loadBalance(const dictionary& decompDict) @@ -309,16 +306,11 @@ bool Foam::topoChangerFvMesh::loadBalance(const dictionary& decompDict) { Pout<< "Send mesh and fields to processor " << procI << endl; - OFstream toProc + OPstream toProc ( - "from" + Foam::name(Pstream::myProcNo()) - + "To" + Foam::name(procI) + Pstream::blocking, + procI ); - // OPstream toProc - // ( - // Pstream::blocking, - // procI - // ); // Send the mesh and fields to target processor toProc << procMesh << nl; @@ -470,16 +462,11 @@ bool Foam::topoChangerFvMesh::loadBalance(const dictionary& decompDict) Pout<< "Receive mesh and fields from " << procI << endl; // Note: communication can be optimised. HJ, 27/Feb/2018 - IFstream fromProc + IPstream fromProc ( - "from" + Foam::name(procI) - + "To" + Foam::name(Pstream::myProcNo()) + Pstream::blocking, + procI ); - // IPstream fromProc - // ( - // Pstream::blocking, - // procI - // ); // Receive the mesh procMeshes.set