30 void Foam::polyMesh::initMesh()
34 Info<<
"void polyMesh::initMesh() : "
35 <<
"initialising primitiveMesh" <<
endl;
40 if (neighbour_.
size() == owner_.
size())
46 if (neighbour_[faceI] == -1)
56 neighbour_.
setSize(nInternalFaces);
63 nCells =
max(nCells, owner_[facei]);
69 nCells =
max(nCells, neighbour_[facei]);
89 owner_.
note() = meshInfo;
90 neighbour_.
note() = meshInfo;
94 void Foam::polyMesh::initMesh(
cellList& c)
98 Info<<
"void polyMesh::initMesh(cellList& c) : "
99 <<
"calculating owner-neighbour arrays" <<
endl;
102 owner_.setSize(faces_.size(), -1);
103 neighbour_.setSize(faces_.size(), -1);
105 boolList markedFaces(faces_.size(),
false);
107 label nInternalFaces = 0;
116 if (!markedFaces[cellfaces[faceI]])
119 owner_[cellfaces[faceI]] = cellI;
120 markedFaces[cellfaces[faceI]] =
true;
125 neighbour_[cellfaces[faceI]] = cellI;
134 neighbour_.setSize(nInternalFaces);
150 +
" nInternalFaces: " +
Foam::name(this->nInternalFaces());
152 owner_.note() = meshInfo;
153 neighbour_.note() = meshInfo;