Skip to content

Commit

Permalink
Fixed to work with Q-chem example with intensities
Browse files Browse the repository at this point in the history
Signed-off-by: Geoff Hutchison <[email protected]>
  • Loading branch information
ghutchis committed Oct 14, 2024
1 parent da5e406 commit ad21c32
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions avogadro/quantumio/molden.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ void MoldenFile::processLine(std::istream& in)
// or we're at the next vibration
if (m_vibDisplacements.size() == m_frequencies.size()) {
// TODO: might need to go back to read intensities
in.seekg(currentPos);
break;
}
}
Expand All @@ -265,6 +266,12 @@ void MoldenFile::processLine(std::istream& in)
if (list.size() == 2)
m_RamanIntensities.push_back(Core::lexicalCast<double>(list[1]));

if (m_IRintensities.size() == m_frequencies.size()) {
// we're done
break;
}

currentPos = in.tellg();
getline(in, line);
line = Core::trimmed(line);
}
Expand Down

0 comments on commit ad21c32

Please sign in to comment.