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

Method NextTimeStep

IO/Chemistry/vtkVASPAnimationReader.cxx:161–179  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

159
160//------------------------------------------------------------------------------
161bool 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//------------------------------------------------------------------------------
182size_t vtkVASPAnimationReader::SelectTimeStepIndex(vtkInformation* info)

Callers 2

RequestDataMethod · 0.95
RequestInformationMethod · 0.95

Calls 3

parseFunction · 0.70
findMethod · 0.45
matchMethod · 0.45

Tested by

no test coverage detected