| 157 | } |
| 158 | |
| 159 | void CoProcess( |
| 160 | Grid& grid, Attributes& attributes, double time, unsigned int timeStep, bool lastTimeStep) |
| 161 | { |
| 162 | vtkNew<vtkCPDataDescription> dataDescription; |
| 163 | dataDescription->AddInput("input"); |
| 164 | dataDescription->SetTimeData(time, timeStep); |
| 165 | if (lastTimeStep == true) |
| 166 | { |
| 167 | // assume that we want to all the pipelines to execute if it |
| 168 | // is the last time step. |
| 169 | dataDescription->ForceOutputOn(); |
| 170 | } |
| 171 | if (Processor->RequestDataDescription(dataDescription) != 0) |
| 172 | { |
| 173 | vtkCPInputDataDescription* idd = dataDescription->GetInputDescriptionByName("input"); |
| 174 | BuildVTKDataStructures(grid, attributes, idd); |
| 175 | idd->SetGrid(VTKGrid); |
| 176 | Processor->CoProcess(dataDescription); |
| 177 | } |
| 178 | } |
| 179 | } // end of Catalyst namespace |
no test coverage detected