53 if (
id >= field.
size() || std::isnan(field[
id]))
82 const string& partDescription
86 name_(partDescription),
99 const string& partDescription,
104 name_(partDescription),
116 number_(part.number_),
118 elemLists_(part.elemLists_),
119 offset_(part.offset_),
121 isCellData_(part.isCellData_),
123 meshPtr_(part.meshPtr_)
133 istreamConstructorTable::iterator cstrIter =
134 istreamConstructorTablePtr_->find(partType);
136 if (cstrIter == istreamConstructorTablePtr_->end())
140 "ensightPart::New(Istream&)",
142 ) <<
"unknown ensightPart type " << partType <<
endl <<
endl
143 <<
"Valid ensightPart types are :" <<
endl
144 << istreamConstructorTablePtr_->sortedToc()
163 dict.
lookup(
"id") >> number_;
164 dict.
lookup(
"name") >> name_;
168 elemLists_.setSize(elementTypes().size());
170 forAll(elementTypes(), elemI)
172 word key(elementTypes()[elemI]);
174 elemLists_[elemI].clear();
177 size_ += elemLists_[elemI].size();
180 is.
check(
"ensightPart::reconstruct(Istream&)");
194 idList[i] += offset_;