34 void Foam::CFCCellToCellStencil::calcFaceBoundaryData
47 const polyPatch& pp = patches[patchI];
48 label faceI = pp.start();
60 else if (isA<emptyPolyPatch>(pp))
65 neiGlobal[bFaceI] = -1;
87 void Foam::CFCCellToCellStencil::calcCellStencil(
labelListList& globalCellCells)
99 calcFaceBoundaryData(neiGlobal);
105 globalCellCells.setSize(
mesh().nCells());
106 forAll(globalCellCells, cellI)
108 const cell& cFaces =
mesh().
cells()[cellI];
110 labelList& cCells = globalCellCells[cellI];
112 cCells.
setSize(cFaces.size()+1);
117 cCells[nNbr++] = globalNumbering().toGlobal(cellI);
122 label faceI = cFaces[i];
124 if (
mesh().isInternalFace(faceI))
126 label nbrCellI = own[faceI];
127 if (nbrCellI == cellI)
129 nbrCellI = nei[faceI];
131 cCells[nNbr++] = globalNumbering().toGlobal(nbrCellI);
138 cCells[nNbr++] = nbrCellI;
142 cCells.setSize(nNbr);
154 calcCellStencil(*
this);