52 const label id = idList[i];
54 if (
id >= field.
size() || std::isnan(field[
id]))
83 const string& partDescription
87 name_(partDescription),
100 const string& partDescription,
105 name_(partDescription),
117 number_(part.number_),
119 elemLists_(part.elemLists_),
120 offset_(part.offset_),
122 isCellData_(part.isCellData_),
124 points_(part.points_)
132 const word partType(is);
134 istreamConstructorTable::iterator cstrIter =
135 istreamConstructorTablePtr_->find(partType);
137 if (cstrIter == istreamConstructorTablePtr_->end())
142 ) <<
"unknown ensightPart type "
143 << partType <<
nl <<
nl
144 <<
"Valid ensightPart types are :" <<
endl
145 << istreamConstructorTablePtr_->sortedToc()
171 idList[i] += offset_;
Various functions to operate on Lists.
#define forAll(list, i)
Loop across all elements in list.
Macros for easy insertion into run-time selection tables.
A PtrList of objects of type <Type> with automated input and output.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
void size(const label)
Override size to be inconsistent with allocated storage.
label size() const
Return the number of elements in the UList.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Base class for ensightPartCells and ensightPartFaces.
static autoPtr< ensightPart > New(Istream &)
Reconstruct part characteristics on freestore from Istream.
bool isFieldDefined(const List< scalar > &) const
Check for fully defined fields.
labelListList elemLists_
Simple labelList with a name.
void renumber(const labelUList &)
Renumber elements.
ensightPart()
Construct null.
virtual ~ensightPart()
Destructor.
A class for handling words, derived from string.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
errorManipArg< error, int > exit(error &err, const int errNo=1)
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Ostream & endl(Ostream &os)
Add newline and flush stream.
defineTemplateTypeNameAndDebug(prghPressure, 0)
defineTypeNameAndDebug(combustionModel, 0)
void inplaceRenumber(const labelUList &oldToNew, ListType &)
Inplace renumber the values of a list.