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()
virtual ~ensightPart()
Destructor.
#define forAll(list, i)
Loop across all elements in list.
ensightPart()
Construct null.
void inplaceRenumber(const labelUList &oldToNew, ListType &)
Inplace renumber the values of a list.
errorManipArg< error, int > exit(error &err, const int errNo=1)
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.
Ostream & endl(Ostream &os)
Add newline and flush stream.
labelListList elemLists_
Simple labelList with a name.
Macros for easy insertion into run-time selection tables.
Various functions to operate on Lists.
A class for handling words, derived from string.
static autoPtr< ensightPart > New(Istream &)
Reconstruct part characteristics on freestore from Istream.
defineTemplateTypeNameAndDebug(IOPtrList< ensightPart >, 0)
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
void renumber(const labelUList &)
Renumber elements.
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
Base class for ensightPartCells and ensightPartFaces.
defineTypeNameAndDebug(combustionModel, 0)
bool isFieldDefined(const List< scalar > &) const
Check for fully defined fields.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
label offset_
Start offset for elemLists_.
static const Field< Type > & null()
Return a null field.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
label size() const
Return the number of elements in the UList.