Commit e546e5fa authored by Jon Woodring's avatar Jon Woodring
Browse files

Uninitialized variable warning.

Change-Id: I7075e1f63f3b7949d5012a0156dbaca183a3ee38
parent 8320bcaf
......@@ -2120,18 +2120,22 @@ void vtkWindBladeReader::LoadBladeData(int timeStep)
if ((linesRead - turbineHeaderStartIndex) == 1)
{
// skip data items to get to necessary field
float parsedItem;
float parsedItem = 0.0f;
for (int i = 0; i < 3; i++)
{
line >> parsedItem;
}
this->BladeLength->SetTuple1(turbineIDHeader, parsedItem);
}
// third line has angular velocity
if ((linesRead - turbineHeaderStartIndex) == 2)
{
// skip items to get to angular velocity
float parsedItem;
float parsedItem = 0.0f;
for (int i = 0; i < 4; i++)
{
line >> parsedItem;
}
this->AngularVeloc->SetTuple1(turbineIDHeader, parsedItem);
}
continue;
......
Supports Markdown
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