Skip to content

Commit

Permalink
Merge pull request #1451 from ghutchis/fix-orca-elements
Browse files Browse the repository at this point in the history
Fix atomic numbers from Orca - it would read electrons not symbols
  • Loading branch information
ghutchis authored Nov 13, 2023
2 parents 2bf4c24 + f86f97f commit 13bb1e5
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 13bb1e5

Please sign in to comment.