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