| 175 | // follow the convention of the superclass. |
| 176 | #ifdef VTK_USE_MPI_IO |
| 177 | unsigned long vtkMPIImageReader::GetHeaderSize(vtkMPIOpaqueFileHandle& file) |
| 178 | { |
| 179 | if (this->ManualHeaderSize) |
| 180 | { |
| 181 | return this->HeaderSize; |
| 182 | } |
| 183 | else |
| 184 | { |
| 185 | this->ComputeDataIncrements(); |
| 186 | |
| 187 | MPI_Offset size; |
| 188 | MPICall(MPI_File_get_size(file.Handle, &size)); |
| 189 | return static_cast<unsigned long>(size - this->DataIncrements[this->GetFileDimensionality()]); |
| 190 | } |
| 191 | } |
| 192 | #else // VTK_USE_MPI_IO |
| 193 | unsigned long vtkMPIImageReader::GetHeaderSize(vtkMPIOpaqueFileHandle&) |
| 194 | { |
no test coverage detected