Commit 385e0e76 authored by Ben Boeckel's avatar Ben Boeckel

vtkEnSightReader: refactor a call

MSVC2015 ICE's without this in the optimizer somewhere. It's better this
way anyways.
parent f2f35036
......@@ -1572,11 +1572,12 @@ int vtkEnSightReader::ReadVariableFiles(vtkMultiBlockDataSet *output)
fileNum = 1;
for (j = 1; j < numStepsList->GetNumberOfIds(); j++)
{
numSteps += numStepsList->GetId(j);
int curNumSteps = numStepsList->GetId(j);
numSteps += curNumSteps;
if (timeStep > numSteps)
{
fileNum++;
timeStepInFile -= numStepsList->GetId(j);
timeStepInFile -= curNumSteps;
}
}
}
......@@ -1716,11 +1717,12 @@ int vtkEnSightReader::ReadVariableFiles(vtkMultiBlockDataSet *output)
fileNum = 1;
for (j = 1; j < numStepsList->GetNumberOfIds(); j++)
{
numSteps += numStepsList->GetId(j);
int curNumSteps = numStepsList->GetId(j);
numSteps += curNumSteps;
if (timeStep > numSteps)
{
fileNum++;
timeStepInFile -= numStepsList->GetId(j);
timeStepInFile -= curNumSteps;
}
}
}
......
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