------------------------------------------------------------------------------
| 2146 | |
| 2147 | //------------------------------------------------------------------------------ |
| 2148 | void vtkMFIXReader::MakeSPXTimeStepIndexTable(int nvars) |
| 2149 | { |
| 2150 | |
| 2151 | int timestep; |
| 2152 | int spx; |
| 2153 | int NumberOfVariablesInSPX; |
| 2154 | |
| 2155 | for (int i = 0; i < nvars; i++) |
| 2156 | { |
| 2157 | for (int j = 0; j < this->MaximumTimestep; j++) |
| 2158 | { |
| 2159 | timestep = (int)this->VariableTimestepTable->GetComponent(j, i); |
| 2160 | spx = this->VariableIndexToSPX->GetValue(i); |
| 2161 | NumberOfVariablesInSPX = this->SPXToNVarTable->GetValue(spx); |
| 2162 | int skip = this->VariableToSkipTable->GetValue(i); |
| 2163 | int index = (3 * 512) + |
| 2164 | (timestep - 1) * ((NumberOfVariablesInSPX * this->SPXRecordsPerTimestep * 512) + 512) + |
| 2165 | 512 + (skip * this->SPXRecordsPerTimestep * 512); |
| 2166 | int ind = (i * this->MaximumTimestep) + j; |
| 2167 | SPXTimestepIndexTable->InsertValue(ind, index); |
| 2168 | } |
| 2169 | } |
| 2170 | } |
| 2171 | |
| 2172 | //------------------------------------------------------------------------------ |
| 2173 | void vtkMFIXReader::CalculateMaxTimeStep() |
no test coverage detected