Commit 826262a8 authored by Utkarsh Ayachit's avatar Utkarsh Ayachit Committed by Code Review

Merge topic 'fix_mfix_reader' into master

f6c0f71c Fixes issue with MFix reader and timesteps.
parents 00e86e74 f6c0f71c
......@@ -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