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

Function CoProcess

Examples/Catalyst/CxxFullExample/FEAdaptor.cxx:150–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148}
149
150void 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

Callers 2

mainFunction · 0.70
coprocessFunction · 0.50

Calls 6

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

Tested by

no test coverage detected