| 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 | //============================================================================= |
nothing calls this directly
no test coverage detected