Skip to content

Commit

Permalink
Fix atomic numbers from Orca - it would read electrons not symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
ghutchis committed Nov 13, 2023
1 parent 2bf4c24 commit f86f97f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion avogadro/quantumio/orca.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,9 @@ void ORCAOutput::processLine(std::istream& in, GaussianSet* basis)
Core::lexicalCast<double>(list[6]) * m_coordFactor,
Core::lexicalCast<double>(list[7]) * m_coordFactor);

m_atomNums.push_back(Core::lexicalCast<int>(list[2]));
unsigned char atomicNum =
Core::Elements::atomicNumberFromSymbol(Core::trimmed(list[1]));
m_atomNums.push_back(atomicNum);
m_atomPos.push_back(pos);
m_atomLabel.push_back(Core::trimmed(list[1]));
getline(in, key);
Expand Down

0 comments on commit f86f97f

Please sign in to comment.