30 void Foam::polyMesh::initMesh()
36 if (neighbour_.size() == owner_.size())
42 if (neighbour_[facei] == -1)
59 if (owner_[facei] < 0)
62 <<
"Illegal cell label " << owner_[facei]
63 <<
" in neighbour addressing for face " << facei
72 if (neighbour_[facei] < 0)
75 <<
"Illegal cell label " << neighbour_[facei]
76 <<
" in neighbour addressing for face " << facei
99 owner_.
note() = meshInfo;
100 neighbour_.
note() = meshInfo;
104 void Foam::polyMesh::initMesh(
cellList&
c)
108 owner_.setSize(faces_.size(), -1);
109 neighbour_.setSize(faces_.size(), -1);
111 boolList markedFaces(faces_.size(),
false);
113 label nInternalFaces = 0;
122 if (cellfaces[facei] < 0)
125 <<
"Illegal face label " << cellfaces[facei]
126 <<
" in cell " << celli
130 if (!markedFaces[cellfaces[facei]])
133 owner_[cellfaces[facei]] = celli;
134 markedFaces[cellfaces[facei]] =
true;
139 neighbour_[cellfaces[facei]] = celli;
148 neighbour_.setSize(nInternalFaces);
164 +
" nInternalFaces: " +
Foam::name(this->nInternalFaces());
166 owner_.note() = meshInfo;
167 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 DebugInFunction
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.
List< bool > boolList
Bool container classes.
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
dimensioned< Type > max(const DimensionedField< Type, GeoMesh, PrimitiveField > &df)