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