33 template<
class ListType>
34 inline void Foam::labelledTri::assignList(
const ListType& list)
36 const label len = list.size();
39 if (len < 3 || len > 4)
42 <<
"size " << len <<
" != (3 or 4)" 46 auto iter = list.begin();
48 for (label i=0; i<3; ++i)
54 index_ = (len == 4) ? *iter : 0;
128 index_(triIndices.region())
146 is >>
static_cast<triFace&
>(t) >> t.index();
148 is.readEnd(
"labelledTri");
152 Detail::readContiguous<labelledTri>
155 reinterpret_cast<char*
>(&t),
177 reinterpret_cast<const char*>(&t),
virtual Ostream & write(const char c)
Write character.
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
virtual bool check(const char *operation) const
Check IOstream status for given operation.
bool readBegin(const char *funcName)
Begin read of data chunk, starts with '('.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
Begin list [isseparator].
labelledTri()
Default construct, with invalid point labels and region (-1).
label & operator[](const label i)
Return element of FixedList.
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
A triangular face using a FixedList of labels corresponding to mesh vertices.
Istream & operator>>(Istream &, directionInfo &)
A triFace with additional (region) index.
errorManip< error > abort(error &err)
An Ostream is an abstract base class for all output systems (streams, files, token lists...
OBJstream os(runTime.globalPath()/outputName)
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
streamFormat format() const noexcept
Get the current stream format.
const volScalarField & p0