Commit 53bef7e3 authored by Jerry Clarke's avatar Jerry Clarke
Browse files

Fixed warnings from CDash

parent 3f688aba
......@@ -90,7 +90,7 @@
//----------------------------------------------------------------------------
vtkStandardNewMacro(vtkXdmfReader);
vtkCxxRevisionMacro(vtkXdmfReader, "1.45");
vtkCxxRevisionMacro(vtkXdmfReader, "1.46");
//----------------------------------------------------------------------------
vtkCxxSetObjectMacro(vtkXdmfReader,Controller,vtkMultiProcessController);
......@@ -113,8 +113,14 @@ class vtkXdmfReaderGrid
public:
//
vtkXdmfReaderGrid()
: XMGrid(0), DataDescription(0), Enabled(0), vtkType(-1), Time(-1), TimeIndex(0), isTemporal(0)
{
this->XMGrid = 0;
this->DataDescription = 0;
this->Enabled = 0;
this->vtkType = -1;
this->Time = -1.0;
this->TimeIndex = 0;
this->isTemporal = 0;
}
~vtkXdmfReaderGrid()
......@@ -1797,13 +1803,13 @@ void vtkXdmfReader::AssignTimeIndex(vtkXdmfReaderGrid *ptr)
{
return;
}
int ActualTimeStep = vtkstd::find_if(
int actualTimeStep = vtkstd::find_if(
this->Internals->TimeValues.begin(),
this->Internals->TimeValues.end(),
vtkstd::bind2nd( vtkstd::greater_equal<double>( ), ptr->Time))
- this->Internals->TimeValues.begin();
// cout << "ActualTimeStep for " << ptr->Time << " = " << ActualTimeStep << endl;
ptr->TimeIndex = ActualTimeStep;
// cout << "actualTimeStep for " << ptr->Time << " = " << actualTimeStep << endl;
ptr->TimeIndex = actualTimeStep;
int T = ptr->Children.size();
// cout << "FindTimeValues : ptr has " << T << " children" << endl;
for (int i=0; i<T; i++) {
......
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