Skip to content

Commit 8d0b9eb

Browse files
committed
fix a magic number in get_euler_angle
1 parent 4484536 commit 8d0b9eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/module_ri/module_exx_symmetry/symmetry_rotation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ namespace ModuleSymmetry
210210
// gmatc should be a rotation matrix, i.e. det(gmatc)=1
211211
TCdouble Symmetry_rotation::get_euler_angle(const ModuleBase::Matrix3& gmatc) const
212212
{
213-
double threshold = 1e-8;
213+
double threshold = this->eps_;
214214
double alpha, beta, gamma;
215215
if (std::fabs(gmatc.e32) > threshold || std::fabs(gmatc.e31) > threshold) // sin(beta) is not zero
216216
{

0 commit comments

Comments
 (0)