Commit 7e32d899 authored by T.J. Corona's avatar T.J. Corona

Fix a bug in vtkExodusIIReader when # of timesteps equals one.

parent 9206fc3d
......@@ -3822,7 +3822,9 @@ int vtkExodusIIReaderPrivate::UpdateTimeInformation()
num_timesteps = itmp[0];
this->Times.clear();
if ( num_timesteps > 0 )
// If there are zero or one timesteps, then there is only one file containing
// the data to be read. So, we treat both instances in the same manner.
if ( num_timesteps > 1 )
{
this->Times.resize( num_timesteps );
VTK_EXO_FUNC( ex_get_all_times( this->Exoid, &this->Times[0] ), "Could not retrieve time values." );
......
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