9 PtrList<labelIOList>& faceProcAddressing = procMeshes.faceProcAddressing();
13 const labelList& curFaceAddr = faceProcAddressing[proci];
17 if (
mag(curFaceAddr[facei]) < minFaceIndex)
19 minFaceIndex =
mag(curFaceAddr[facei]);
27 <<
"parallel decomposition addressing." <<
endl 28 <<
"It looks like you are trying to reconstruct the case " 29 <<
"decomposed with an earlier version of FOAM, which could\n" 30 <<
"potentially cause compatibility problems. The code will " 31 <<
"attempt to update the addressing automatically; in case of\n" 32 <<
"failure, please repeat the decomposition of the case using " 33 <<
"the current version fo decomposePar" 36 forAll(faceProcAddressing, proci)
38 labelList& curFaceAddr = faceProcAddressing[proci];
42 curFaceAddr[facei] +=
sign(curFaceAddr[facei]);
45 faceProcAddressing[proci].write();
dimensionedScalar sign(const dimensionedScalar &ds)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Ostream & endl(Ostream &os)
Add newline and flush stream.
static const label labelMax
List< label > labelList
A List of labels.
forAll(faceProcAddressing, proci)
#define WarningInFunction
Report a warning using Foam::Warning.
dimensioned< scalar > mag(const dimensioned< Type > &)