Commit 235bd27a authored by T.J. Corona's avatar T.J. Corona Committed by Kitware Robot
Browse files

Merge topic 'exodus-single-timestep'


 Fix a bug in vtkExodusIIReader when # of timesteps equals one.
Acked-by: Kitware Robot's avatarKitware Robot <>
Acked-by: default avatarRobert Maynard <>
Reviewed-by: default avatarDavid E DeMarle <>
Merge-request: !1308
parents 64a57a44 7e32d899
Pipeline #9057 failed with stage
......@@ -3822,7 +3822,9 @@ int vtkExodusIIReaderPrivate::UpdateTimeInformation()
num_timesteps = itmp[0];
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