------------------------------------------------------------------------------
| 159 | |
| 160 | //------------------------------------------------------------------------------ |
| 161 | bool vtkVASPAnimationReader::NextTimeStep(std::istream& in, double& time) |
| 162 | { |
| 163 | std::string line; |
| 164 | while (std::getline(in, line)) |
| 165 | { |
| 166 | if (this->TimeParser->find(line)) |
| 167 | { |
| 168 | // Parse timestamp: |
| 169 | if (!parse(this->TimeParser->match(1), time)) |
| 170 | { |
| 171 | vtkErrorMacro("Error parsing time information from line: " << line); |
| 172 | return false; |
| 173 | } |
| 174 | return true; |
| 175 | } |
| 176 | } |
| 177 | |
| 178 | return false; |
| 179 | } |
| 180 | |
| 181 | //------------------------------------------------------------------------------ |
| 182 | size_t vtkVASPAnimationReader::SelectTimeStepIndex(vtkInformation* info) |
no test coverage detected