Commit 27984c3d authored by Utkarsh Ayachit's avatar Utkarsh Ayachit

BUG #15321: Fix mode_shape array.

'mode_shape' array placed in the output of vtkExodusIIReader was
directly using the timestep index. It should be offset by 1 (since
it starts with 1, not 0). Fixed that.
parent 6ea5246f
......@@ -1015,7 +1015,8 @@ int vtkExodusIIReaderPrivate::AssembleOutputGlobalArrays(
dataIndexArray->SetName("mode_shape");
dataIndexArray->SetNumberOfComponents(1);
dataIndexArray->SetNumberOfTuples(1);
dataIndexArray->SetValue(0, timeStep);
// mode-shape == (timestep + 1). See vtkExodusIIReader::SetModeShape().
dataIndexArray->SetValue(0, (timeStep + 1));
ofieldData->AddArray(dataIndexArray.GetPointer());
}
......
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