MCPcopy Create free account
hub / github.com/Kitware/VTK / GetArraysFromSubSections

Method GetArraysFromSubSections

IO/Geometry/vtkFLUENTReader.cxx:264–281  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

262
263//------------------------------------------------------------------------------
264void vtkFLUENTReader::GetArraysFromSubSections()
265{
266 for (const SubSection& subSection : this->SubSections)
267 {
268 if (subSection.size == 1)
269 {
270 this->CellDataArraySelection->AddArray(this->VariableNames[subSection.id].c_str());
271 this->ScalarVariableNames.push_back(this->VariableNames[subSection.id]);
272 this->ScalarSubSectionIds.push_back(subSection.id);
273 }
274 else if (subSection.size == 3)
275 {
276 this->CellDataArraySelection->AddArray(this->VariableNames[subSection.id].c_str());
277 this->VectorVariableNames.push_back(this->VariableNames[subSection.id]);
278 this->VectorSubSectionIds.push_back(subSection.id);
279 }
280 }
281}
282
283//------------------------------------------------------------------------------
284bool vtkFLUENTReader::FillMultiblock(std::vector<unsigned int>& disabledZones,

Callers 1

RequestDataMethod · 0.95

Calls 3

AddArrayMethod · 0.45
c_strMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected