mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: add maxSize() and maxNonLocalSize() to globalIndex
- useful for establishing and preallocating a max buffer size when reading from sub-procs
This commit is contained in:
@ -6,6 +6,7 @@
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||
Copyright (C) 2021 OpenCFD Ltd.
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
This file is part of OpenFOAM.
|
||||
@ -92,6 +93,11 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
|
||||
|
||||
Info<< "Max number of cells: " << globalNumbering.maxSize() << nl;
|
||||
Pout<< "nCells: "
|
||||
<< globalNumbering.localSize() << " Max off-processor: "
|
||||
<< globalNumbering.maxNonLocalSize() << nl;
|
||||
|
||||
// Try whichProcID on a few borderline cases.
|
||||
|
||||
if (mesh.nCells() < 1)
|
||||
|
||||
Reference in New Issue
Block a user