Commit e66cef8c authored by Utkarsh Ayachit's avatar Utkarsh Ayachit

Remove vtkExodusIIReader::UpdateTimeInformation().

This method is never called by anything. Hence, removing it to avoid
confusion.
parent 31af3dd1
......@@ -6260,22 +6260,3 @@ void vtkExodusIIReader::ResetCache()
{
this->Metadata->ResetCache();
}
void vtkExodusIIReader::UpdateTimeInformation()
{
if ( this->Metadata->OpenFile( this->FileName ) )
{
this->Metadata->UpdateTimeInformation();
if ( ! this->GetHasModeShapes() )
{
int nTimes = (int) this->Metadata->Times.size();
if ( nTimes )
{
this->TimeStepRange[0] = 0;
this->TimeStepRange[1] = nTimes - 1;
}
}
this->Metadata->CloseFile();
}
}
......@@ -682,12 +682,6 @@ public:
void SetSqueezePoints(bool sp);
bool GetSqueezePoints();
// Description:
// Re-reads time information from the exodus file and updates
// TimeStepRange accordingly.
virtual void UpdateTimeInformation();
virtual void Dump();
// Description:
......
......@@ -997,37 +997,6 @@ vtkIdType vtkPExodusIIReader::GetTotalNumberOfNodes()
return total;
}
void vtkPExodusIIReader::UpdateTimeInformation()
{
// Before we start, make sure that we have readers to read (i.e. that
// RequestData() has been called.
if ( this->ReaderList.size() == 0 )
{
return;
}
int lastTimeStep = VTK_INT_MAX;
int numTimeSteps = 0;
for ( size_t reader_idx = 0; reader_idx < this->ReaderList.size(); ++ reader_idx )
{
vtkExodusIIReader *reader = this->ReaderList[reader_idx];
// In order to get an up-to-date number of timesteps, update the reader's
// time information first
reader->UpdateTimeInformation();
numTimeSteps = reader->GetNumberOfTimeSteps();
// if this reader's last time step is less than the one we have, use it instead
lastTimeStep = numTimeSteps-1 < lastTimeStep ? numTimeSteps-1 : lastTimeStep;
}
this->LastCommonTimeStep = lastTimeStep;
this->Superclass::UpdateTimeInformation();
this->Modified();
this->UpdateInformation();
}
static void BroadcastXmitString( vtkMultiProcessController* ctrl, char* str )
{
int len;
......
......@@ -103,15 +103,6 @@ public:
virtual vtkIdType GetTotalNumberOfElements();
virtual vtkIdType GetTotalNumberOfNodes();
// Description:
// Calls UpdateTimeInformation() on all serial readers so they'll re-read
// their time info from the file.
// The last time step that they all have in common
// is stored in LastCommonTimeStep, which is used in RequestInformation()
// to override the output time-specific information keys with the range
// of times that ALL readers can actually read.
virtual void UpdateTimeInformation();
// Description:
// Sends metadata (that read from the input file, not settings modified
// through this API) from the rank 0 node to all other processes in a job.
......
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