MCPcopy Create free account
hub / github.com/Kitware/VTK / MakeSPXTimeStepIndexTable

Method MakeSPXTimeStepIndexTable

IO/Geometry/vtkMFIXReader.cxx:2148–2170  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

2146
2147//------------------------------------------------------------------------------
2148void 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//------------------------------------------------------------------------------
2173void vtkMFIXReader::CalculateMaxTimeStep()

Callers 1

RequestInformationMethod · 0.95

Calls 3

GetComponentMethod · 0.45
GetValueMethod · 0.45
InsertValueMethod · 0.45

Tested by

no test coverage detected