Commit 1f49dfe0 authored by mattijs's avatar mattijs Committed by Andrew Heather
Browse files

STYLE: meshToMesh: typo, cached version.

parent 64ceecc4
......@@ -430,7 +430,7 @@ Foam::autoPtr<Foam::mapDistribute> Foam::processorLODs::box::createMap
// Store elements to send - will be used to build the mapDistribute
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
List<List<labelList>> localTgtElems(Pstream::nProcs());
......
......@@ -131,9 +131,8 @@ Foam::autoPtr<Foam::mapDistribute> Foam::meshToMesh::calcProcMap
// Create processor map of overlapping faces. This map gets
// (possibly remote) cells from the tgt mesh such that they
// (together) cover all of the src mesh
label nGlobalSrcCells =
returnReduce(src.cells().size(), sumOp<label>());
label cellsPerBox = max(1, 0.001*nGlobalSrcCells);
const label nGlobalSrcCells = src.globalData().nTotalCells();
const label cellsPerBox = max(1, 0.001*nGlobalSrcCells);
typename processorLODs::cellBox boxLOD
(
src.cells(),
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment