ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/branches/development/src/io/DumpReader.cpp
(Generate patch)

Comparing branches/development/src/io/DumpReader.cpp (file contents):
Revision 1870 by gezelter, Wed Feb 20 15:39:39 2013 UTC vs.
Revision 1871 by gezelter, Fri May 10 14:59:13 2013 UTC

# Line 527 | Line 527 | namespace OpenMD {
527  
528      StringTokenizer tokenizer(line);
529      int nTokens;
530 <    
530 >        
531      nTokens = tokenizer.countTokens();
532      
533      if (nTokens < 2) {  
# Line 647 | Line 647 | namespace OpenMD {
647  
648    void  DumpReader::readSiteData(std::istream& inputStream) {
649  
650    inputStream.getline(buffer, bufferSize);
650      std::string line(buffer);
651 +
652 +    // We already found the starting <SiteData> tag or we wouldn't be
653 +    // here, so just start parsing until we get to the ending
654 +    // </SiteData> tag:
655      
653    if (line.find("<SiteData>") == std::string::npos) {
654      // site data isn't required for a simulation, so skip
655      return;
656    }
657
656      while(inputStream.getline(buffer, bufferSize)) {
657        line = buffer;
658        

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines