------------------------------------------------------------------------------
| 1500 | |
| 1501 | //------------------------------------------------------------------------------ |
| 1502 | bool vtkHDFWriter::Implementation::InitDynamicDataset(hid_t group, const char* name, hid_t type, |
| 1503 | hsize_t cols, hsize_t chunkSize[], int compressionLevel) |
| 1504 | { |
| 1505 | // When writing data externally, don't create a dynamic dataset, |
| 1506 | // But create a virtual one based on the subfiles on the last step or partition. |
| 1507 | if (!this->Subfiles.empty() && group != this->StepsGroup) |
| 1508 | { |
| 1509 | return true; |
| 1510 | } |
| 1511 | |
| 1512 | vtkHDF::ScopedH5SHandle emptyDataspace = this->CreateUnlimitedSimpleDataspace(cols); |
| 1513 | if (emptyDataspace == H5I_INVALID_HID) |
| 1514 | { |
| 1515 | return false; |
| 1516 | } |
| 1517 | vtkHDF::ScopedH5DHandle dataset = this->CreateChunkedHdfDataset( |
| 1518 | group, name, type, emptyDataspace, cols, chunkSize, compressionLevel); |
| 1519 | return dataset != H5I_INVALID_HID; |
| 1520 | } |
| 1521 | |
| 1522 | //------------------------------------------------------------------------------ |
| 1523 | void vtkHDFWriter::Implementation::CreateArraysFromNonNullPart(hid_t group, vtkDataObject* data) |
no test coverage detected