Commit f6c0f71c authored by Terry Jordan's avatar Terry Jordan Committed by Utkarsh Ayachit

Fixes issue with MFix reader and timesteps.

This is a fix to remove an errant additional scalar causing the timestep
information array to be misaligned with the variable name array.

Change-Id: I9697fb8d724959a3703cd29ef3d2a41b50e67d14
parent 0664ec35
......@@ -2048,7 +2048,7 @@ void vtkMFIXReader::GetTimeSteps()
case 7:
{
numberOfVariables = this->NMax->GetValue(0);
for (int m=0; m<=this->MMAX; ++m)
for (int m=1; m<=this->MMAX; ++m)
{
numberOfVariables += this->NMax->GetValue(m);
}
......@@ -2243,7 +2243,7 @@ void vtkMFIXReader::GetNumberOfVariablesInSPXFiles()
int skip = 0;
for (int j=1; j<this->NumberOfSPXFilesUsed; j++)
{
for(int i=0;i<this->VariableNames->GetMaxId()+1;i++)
for(int i=0;i<=this->VariableNames->GetMaxId();i++)
{
if ((this->VariableIndexToSPX->GetValue(i) == j)
&& (this->VariableComponents->GetValue(i) == 1))
......
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