Skip to content

Commit

Permalink
fixup in molden export
Browse files Browse the repository at this point in the history
  • Loading branch information
evaleev committed Jan 26, 2021
1 parent 3bf3a07 commit 5bb5fcf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/libint2/lcao/molden.h
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ class PBCExport: public Export{
const bool nonzero_a = a >= eps;
const bool nonzero_b = b >= eps;
const bool nonzero_c = c >= eps;
static constexpr double right_angle = M_PI / 4;
static constexpr double right_angle = M_PI / 2;
const double alpha = nonzero_b && nonzero_c ? std::acos(cell_axes_[1].dot(cell_axes_[2]) / (b * c)) : right_angle;
const double beta = nonzero_a && nonzero_c ? std::acos(cell_axes_[0].dot(cell_axes_[2]) / (a * c)) : right_angle;
const double gamma = nonzero_a && nonzero_b ? std::acos(cell_axes_[0].dot(cell_axes_[1]) / (a * b)) : right_angle;
Expand Down

0 comments on commit 5bb5fcf

Please sign in to comment.