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

Merge topic 'exodus-single-timestep'

7e32d899 Fix a bug in vtkExodusIIReader when # of timesteps equals one.
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Acked-by: Robert Maynard's avatarRobert Maynard <robert.maynard@kitware.com>
Reviewed-by: David E. DeMarle's avatarDavid E DeMarle <dave.demarle@kitware.com>
Merge-request: !1308
parents 64a57a44 7e32d899
......@@ -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