Skip to content

Commit

Permalink
Fix Pull request
Browse files Browse the repository at this point in the history
  • Loading branch information
gg27fyla committed Jun 21, 2024
1 parent f4fd582 commit e10cec3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/core/energycalculator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,12 @@ EnergyCalculator::EnergyCalculator(const std::string& method, const json& contro
return this->m_xtb->Charges();
};
m_dipole = [this]() {
return this->m_xtb->Dipole();
Position dipole;
dipole(0) = this->m_xtb->Dipole()[0];
dipole(1) = this->m_xtb->Dipole()[1];
dipole(2) = this->m_xtb->Dipole()[2];

return dipole;
};
m_bonds = [this]() {
return this->m_xtb->BondOrders();
Expand Down

0 comments on commit e10cec3

Please sign in to comment.