MCPcopy Create free account
hub / github.com/Kitware/VTK / RequestData

Method RequestData

IO/Parallel/vtkEnSightWriter.cxx:114–144  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

112
113//------------------------------------------------------------------------------
114int vtkEnSightWriter::RequestData(vtkInformation* vtkNotUsed(request),
115 vtkInformationVector** vtkNotUsed(inputVector), vtkInformationVector* vtkNotUsed(outputVector))
116{
117 this->SetErrorCode(vtkErrorCode::NoError);
118
119 vtkDataObject* input = this->GetInput();
120
121 // make sure input is available
122 if (!input)
123 {
124 vtkErrorMacro(<< "No input!");
125 return 0;
126 }
127
128 this->InvokeEvent(vtkCommand::StartEvent, nullptr);
129
130 this->WriteData(); // write geometry and variable files
131 this->WriteCaseFile(1); // write .case file with one timestep (0)
132
133 if (this->NumberOfProcesses > 1 && this->ProcessNumber == 0)
134 {
135 // write .sos file that contains paths to the .case pieces
136 this->WriteSOSCaseFile(this->NumberOfProcesses);
137 }
138
139 this->InvokeEvent(vtkCommand::EndEvent, nullptr);
140
141 this->WriteTime.Modified();
142
143 return 1;
144}
145
146//------------------------------------------------------------------------------
147// Specify the input data or filter.

Callers

nothing calls this directly

Calls 6

GetInputMethod · 0.95
WriteDataMethod · 0.95
WriteCaseFileMethod · 0.95
WriteSOSCaseFileMethod · 0.95
InvokeEventMethod · 0.80
ModifiedMethod · 0.45

Tested by

no test coverage detected