MCPcopy Create free account
hub / github.com/Kitware/ParaView / CoProcess

Function CoProcess

Examples/Catalyst/MPISubCommunicatorExample/FEAdaptor.cxx:159–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157}
158
159void 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

Callers 1

SubCommunicatorDriverFunction · 0.70

Calls 6

SetTimeDataMethod · 0.80
BuildVTKDataStructuresFunction · 0.70
AddInputMethod · 0.45
CoProcessMethod · 0.45

Tested by

no test coverage detected