Commit 4e9bcb6b authored by David C. Lonie's avatar David C. Lonie

Fix typo in vtkMPIImageReader.

Number of values should be (numComps * numTuples), not
(numComps + numTuples).

Fixes paraview/paraview#16876.
parent 279ff7cd
Pipeline #24903 passed with stage
......@@ -432,7 +432,7 @@ void vtkMPIImageReader::ExecuteDataWithInformation(vtkDataObject *output,
data->GetIncrements(inIncrements);
vtkDataArray *outputDataArray = data->GetPointData()->GetScalars();
vtkIdType numValues = ( outputDataArray->GetNumberOfComponents()
+ outputDataArray->GetNumberOfTuples() );
* outputDataArray->GetNumberOfTuples() );
outputDataArray->SetName(this->ScalarArrayName);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment