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