| 143 | } |
| 144 | |
| 145 | void CatalystCoProcess(unsigned int numberOfPoints, double* pointsData, unsigned int numberOfCells, |
| 146 | unsigned int* cellsData, double* velocityData, float* pressureData, double time, |
| 147 | unsigned int timeStep, int lastTimeStep) |
| 148 | { |
| 149 | vtkNew<vtkCPDataDescription> dataDescription; |
| 150 | dataDescription->AddInput("input"); |
| 151 | dataDescription->SetTimeData(time, timeStep); |
| 152 | if (lastTimeStep == true) |
| 153 | { |
| 154 | // assume that we want to all the pipelines to execute if it |
| 155 | // is the last time step. |
| 156 | dataDescription->ForceOutputOn(); |
| 157 | } |
| 158 | if (Processor->RequestDataDescription(dataDescription) != 0) |
| 159 | { |
| 160 | vtkCPInputDataDescription* idd = dataDescription->GetInputDescriptionByName("input"); |
| 161 | BuildVTKDataStructures( |
| 162 | idd, numberOfPoints, pointsData, velocityData, numberOfCells, cellsData, pressureData); |
| 163 | idd->SetGrid(VTKGrid); |
| 164 | Processor->CoProcess(dataDescription); |
| 165 | } |
| 166 | } |
no test coverage detected