30 void Foam::polyMesh::initMesh()
39 if (neighbour_.size() == owner_.size())
45 if (neighbour_[facei] == -1)
62 if (owner_[facei] < 0)
65 <<
"Illegal cell label " << owner_[facei]
66 <<
" in neighbour addressing for face " << facei
75 if (neighbour_[facei] < 0)
78 <<
"Illegal cell label " << neighbour_[facei]
79 <<
" in neighbour addressing for face " << facei
102 owner_.
note() = meshInfo;
103 neighbour_.
note() = meshInfo;
107 void Foam::polyMesh::initMesh(
cellList&
c)
114 owner_.setSize(faces_.size(), -1);
115 neighbour_.setSize(faces_.size(), -1);
117 boolList markedFaces(faces_.size(),
false);
119 label nInternalFaces = 0;
128 if (cellfaces[facei] < 0)
131 <<
"Illegal face label " << cellfaces[facei]
132 <<
" in cell " << celli
136 if (!markedFaces[cellfaces[facei]])
139 owner_[cellfaces[facei]] = celli;
140 markedFaces[cellfaces[facei]] =
true;
145 neighbour_[cellfaces[facei]] = celli;
154 neighbour_.setSize(nInternalFaces);
170 +
" nInternalFaces: " +
Foam::name(this->nInternalFaces());
172 owner_.note() = meshInfo;
173 neighbour_.note() = meshInfo;
#define forAll(list, i)
Loop across all elements in list.
string & note()
Return non-constant access to the optional note.
void size(const label)
Override size to be inconsistent with allocated storage.
label nInternalFaces() const
void reset(const label nPoints, const label nInternalFaces, const label nFaces, const label nCells)
Reset this primitiveMesh given the primitive array sizes.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
#define InfoInFunction
Report an information message using Foam::Info.
const dimensionedScalar c
Speed of light in a vacuum.
errorManipArg< error, int > exit(error &err, const int errNo=1)
List< label > labelList
A List of labels.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
List< cell > cellList
list of cells
Ostream & endl(Ostream &os)
Add newline and flush stream.
word name(const bool)
Return a word representation of a bool.
List< bool > boolList
Bool container classes.
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)