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

Method Transient

IO/IOSS/vtkIOSSModel.cxx:1847–1871  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1845 }
1846
1847 void Transient(Ioss::Region& region) const override
1848 {
1849 auto entity = this->GetEntity(region, this->Name);
1850
1851 // populate ids.
1852 std::vector<std::vector<vtkIdType>> lIds; // these are local ids.
1853 const bool removeGhosts = this->Writer->GetRemoveGhosts();
1854 for (auto& ds : this->DataSets)
1855 {
1856 vtkUnsignedCharArray* ghost = ds->GetCellGhostArray();
1857 lIds.emplace_back();
1858 lIds.back().reserve(static_cast<size_t>(ds->GetNumberOfCells()));
1859 for (vtkIdType cc = 0, max = ds->GetNumberOfCells(); cc < max; ++cc)
1860 {
1861 const bool process = !removeGhosts || !ghost || ghost->GetValue(cc) == 0;
1862 if (process)
1863 {
1864 lIds.back().push_back(cc);
1865 }
1866 }
1867 }
1868
1869 // add fields.
1870 this->PutFields(entity, this->Fields, lIds, this->DataSets, vtkDataObject::CELL);
1871 }
1872};
1873
1874//=============================================================================

Callers

nothing calls this directly

Calls 9

GetCellGhostArrayMethod · 0.80
backMethod · 0.80
PutFieldsMethod · 0.80
GetEntityMethod · 0.45
emplace_backMethod · 0.45
reserveMethod · 0.45
GetNumberOfCellsMethod · 0.45
GetValueMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected