diff --git a/src/dynamicMesh/topoChangerFvMesh/dynamicPolyRefinementFvMesh/dynamicPolyRefinementFvMesh.C b/src/dynamicMesh/topoChangerFvMesh/dynamicPolyRefinementFvMesh/dynamicPolyRefinementFvMesh.C index 5a5eacf23..680e7186b 100644 --- a/src/dynamicMesh/topoChangerFvMesh/dynamicPolyRefinementFvMesh/dynamicPolyRefinementFvMesh.C +++ b/src/dynamicMesh/topoChangerFvMesh/dynamicPolyRefinementFvMesh/dynamicPolyRefinementFvMesh.C @@ -271,13 +271,13 @@ bool Foam::dynamicPolyRefinementFvMesh::update() ( refinementSelectionPtr_->refinementCellCandidates()() ); - Pout<< "Selected " << refCandidates.size() + Info<< "Selected " << refCandidates.size() << " refinement candidates." << endl; } else { - Pout<< "Skipping refinement for this time-step..." << endl; + Info<< "Skipping refinement for this time-step..." << endl; } // Set cells to refine. Note: refinement needs to make sure that face @@ -297,13 +297,13 @@ bool Foam::dynamicPolyRefinementFvMesh::update() ( refinementSelectionPtr_->unrefinementPointCandidates()() ); - Pout<< "Selected " << unrefCandidates.size() + Info<< "Selected " << unrefCandidates.size() << " unrefinement candidates." << endl; } else { - Pout<< "Skipping unrefinement for this time-step..." << endl; + Info<< "Skipping unrefinement for this time-step..." << endl; } // Set split points to unrefine around. @@ -344,13 +344,13 @@ bool Foam::dynamicPolyRefinementFvMesh::update() // some topo changes if (sizeCellMap) { - Pout<< "Successfully performed polyhedral refinement. " + Info<< "Successfully performed polyhedral refinement. " << "Changed from " << nOldCells << " to " << sizeCellMap << " cells." << endl; } else { - Pout<< "Refinement/unrefinement not performed in this time step " + Info<< "Refinement/unrefinement not performed in this time step " << "since no cells were selected." << endl; } @@ -362,7 +362,9 @@ bool Foam::dynamicPolyRefinementFvMesh::update() // per time step curTimeIndex_ = time().timeIndex(); } - Pout<< "No refinement/unrefinement" << endl; + + Info<< "No refinement/unrefinement" << endl; + // No refinement/unrefinement at this time step. Return false return false; } diff --git a/src/dynamicMesh/topoChangerFvMesh/topoChangerFvMesh/topoChangerFvMeshLoadBalance.C b/src/dynamicMesh/topoChangerFvMesh/topoChangerFvMesh/topoChangerFvMeshLoadBalance.C index 63349bb8a..8285623ee 100644 --- a/src/dynamicMesh/topoChangerFvMesh/topoChangerFvMesh/topoChangerFvMeshLoadBalance.C +++ b/src/dynamicMesh/topoChangerFvMesh/topoChangerFvMesh/topoChangerFvMeshLoadBalance.C @@ -291,7 +291,7 @@ bool Foam::topoChangerFvMesh::loadBalance(const dictionary& decompDict) true // Create passive processor patches ); fvMesh& procMesh = procMeshPtr(); - procMesh.write(); + // Create a field decomposer fvFieldDecomposer fieldDecomposer ( @@ -304,7 +304,11 @@ bool Foam::topoChangerFvMesh::loadBalance(const dictionary& decompDict) if (procI != Pstream::myProcNo()) { - Pout<< "Send mesh and fields to processor " << procI << endl; + if (debug) + { + Pout<< "Send mesh and fields to processor " << procI + << endl; + } OPstream toProc ( @@ -449,8 +453,6 @@ bool Foam::topoChangerFvMesh::loadBalance(const dictionary& decompDict) } } - sleep(2); - // Collect pieces of mesh and fields from other processors for (label procI = 0; procI < meshDecomp.nProcs(); procI++) { @@ -459,7 +461,10 @@ bool Foam::topoChangerFvMesh::loadBalance(const dictionary& decompDict) // Check if there is a mesh to send if (migratedCells[procI][Pstream::myProcNo()] > 0) { - Pout<< "Receive mesh and fields from " << procI << endl; + if (debug) + { + Pout<< "Receive mesh and fields from " << procI << endl; + } // Note: communication can be optimised. HJ, 27/Feb/2018 IPstream fromProc