STYLE: meshToMesh: typo, cached version.

This commit is contained in:
mattijs
2019-10-18 17:19:40 +01:00
committed by Andrew Heather
parent 64ceecc4c9
commit 1f49dfe088
2 changed files with 3 additions and 4 deletions

View File

@ -430,7 +430,7 @@ Foam::autoPtr<Foam::mapDistribute> Foam::processorLODs::box::createMap
// Store elements to send - will be used to build the mapDistribute // Store elements to send - will be used to build the mapDistribute
List<labelHashSet> fixedSendElems(Pstream::nProcs()); List<labelHashSet> fixedSendElems(Pstream::nProcs());
// List of local tgt elems to optimise searching fot tgt elements inside // List of local tgt elems to optimise searching for tgt elements inside
// remote src boxes // remote src boxes
List<List<labelList>> localTgtElems(Pstream::nProcs()); List<List<labelList>> localTgtElems(Pstream::nProcs());

View File

@ -131,9 +131,8 @@ Foam::autoPtr<Foam::mapDistribute> Foam::meshToMesh::calcProcMap
// Create processor map of overlapping faces. This map gets // Create processor map of overlapping faces. This map gets
// (possibly remote) cells from the tgt mesh such that they // (possibly remote) cells from the tgt mesh such that they
// (together) cover all of the src mesh // (together) cover all of the src mesh
label nGlobalSrcCells = const label nGlobalSrcCells = src.globalData().nTotalCells();
returnReduce(src.cells().size(), sumOp<label>()); const label cellsPerBox = max(1, 0.001*nGlobalSrcCells);
label cellsPerBox = max(1, 0.001*nGlobalSrcCells);
typename processorLODs::cellBox boxLOD typename processorLODs::cellBox boxLOD
( (
src.cells(), src.cells(),