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

Function CoProcess

Examples/Catalyst/CxxSOADataArrayExample/FEAdaptor.cxx:153–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151}
152
153void 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

Callers 1

mainFunction · 0.70

Calls 6

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

Tested by

no test coverage detected