Skip to content
This repository has been archived by the owner on Sep 1, 2021. It is now read-only.

Commit

Permalink
Ensure dipole moments go from positive to negative (chemistry)
Browse files Browse the repository at this point in the history
Thanks to Steven Petrovic for the bug report.
  • Loading branch information
ghutchis committed Jun 8, 2016
1 parent 386374d commit aaa67d0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libavogadro/src/molecule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -785,7 +785,8 @@ namespace Avogadro{

// convert from electrons * Angstrom to Debye
// (1.602176487×10−19 C / electron) * (1.0e-10 m/Ang / 3.33564e-30 C/m)
dipoleMoment *= 4.80321;
// use the negative to go from positive to negative charge (Chemistry)
dipoleMoment *= -4.80321;

if (estimate)
*estimate = true;
Expand Down

0 comments on commit aaa67d0

Please sign in to comment.