------------------------------------------------------------------------------
| 180 | |
| 181 | //------------------------------------------------------------------------------ |
| 182 | bool vtkHDFWriter::Implementation::OpenSubfile(const std::string& filename) |
| 183 | { |
| 184 | vtkDebugWithObjectMacro( |
| 185 | this->Writer, << "Opening sub file on rank " << this->Writer->CurrentPiece << ": " << filename); |
| 186 | |
| 187 | vtkHDF::ScopedH5FHandle file{ H5Fopen(filename.c_str(), H5F_ACC_RDONLY, H5P_DEFAULT) }; |
| 188 | if (file == H5I_INVALID_HID) |
| 189 | { |
| 190 | return false; |
| 191 | } |
| 192 | |
| 193 | this->Subfiles.emplace_back(std::move(file)); |
| 194 | this->SubfileNames.emplace_back(filename); |
| 195 | |
| 196 | return true; |
| 197 | } |
| 198 | |
| 199 | //------------------------------------------------------------------------------ |
| 200 | vtkHDF::ScopedH5GHandle vtkHDFWriter::Implementation::OpenExistingGroup( |
no test coverage detected