LabelField change for pointLevel and cellLevel

This commit is contained in:
Hrvoje Jasak 2018-10-16 09:22:29 +01:00
parent fbed59fec8
commit d349a41795

View file

@ -27,6 +27,7 @@ License
#include "foamTime.H" #include "foamTime.H"
#include "dictionary.H" #include "dictionary.H"
#include "labelIOList.H" #include "labelIOList.H"
#include "labelIOField.H"
#include "processorPolyPatch.H" #include "processorPolyPatch.H"
#include "passiveProcessorPolyPatch.H" #include "passiveProcessorPolyPatch.H"
#include "fvMesh.H" #include "fvMesh.H"
@ -525,7 +526,7 @@ bool Foam::domainDecomposition::writeDecomposition()
// Note: get cellLevel and pointLevel. Avoid checking whether they exist or // Note: get cellLevel and pointLevel. Avoid checking whether they exist or
// not by hand. If they don't exist, simply assume that the level is 0 // not by hand. If they don't exist, simply assume that the level is 0
const labelIOList globalCellLevel const labelIOField globalCellLevel
( (
IOobject IOobject
( (
@ -536,10 +537,10 @@ bool Foam::domainDecomposition::writeDecomposition()
IOobject::READ_IF_PRESENT, IOobject::READ_IF_PRESENT,
IOobject::NO_WRITE IOobject::NO_WRITE
), ),
labelList(mesh_.nCells(), 0) labelField(mesh_.nCells(), 0)
); );
const labelIOList globalPointLevel const labelIOField globalPointLevel
( (
IOobject IOobject
( (
@ -550,7 +551,7 @@ bool Foam::domainDecomposition::writeDecomposition()
IOobject::READ_IF_PRESENT, IOobject::READ_IF_PRESENT,
IOobject::NO_WRITE IOobject::NO_WRITE
), ),
labelList(mesh_.nPoints(), 0) labelField(mesh_.nPoints(), 0)
); );
@ -695,7 +696,7 @@ bool Foam::domainDecomposition::writeDecomposition()
// Create and write cellLevel and pointLevel information // Create and write cellLevel and pointLevel information
const unallocLabelList& cellMap = cellProcAddressing; const unallocLabelList& cellMap = cellProcAddressing;
labelIOList procCellLevel labelIOField procCellLevel
( (
IOobject IOobject
( (
@ -706,12 +707,12 @@ bool Foam::domainDecomposition::writeDecomposition()
IOobject::NO_READ, IOobject::NO_READ,
IOobject::NO_WRITE IOobject::NO_WRITE
), ),
labelList(globalCellLevel, cellMap) labelField(globalCellLevel, cellMap)
); );
procCellLevel.write(); procCellLevel.write();
const unallocLabelList& pointMap = pointProcAddressing; const unallocLabelList& pointMap = pointProcAddressing;
labelIOList procPointLevel labelIOField procPointLevel
( (
IOobject IOobject
( (
@ -722,7 +723,7 @@ bool Foam::domainDecomposition::writeDecomposition()
IOobject::NO_READ, IOobject::NO_READ,
IOobject::NO_WRITE IOobject::NO_WRITE
), ),
labelList(globalPointLevel, pointMap) labelField(globalPointLevel, pointMap)
); );
procPointLevel.write(); procPointLevel.write();
} }