------------------------------------------------------------------------------
| 112 | |
| 113 | //------------------------------------------------------------------------------ |
| 114 | int 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. |
nothing calls this directly
no test coverage detected