Skip to content

Commit

Permalink
fix a too-strict assert
Browse files Browse the repository at this point in the history
  • Loading branch information
maki49 committed Jul 12, 2023
1 parent f74b353 commit f6f4ac3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/module_cell/module_symmetry/symmetry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2044,7 +2044,7 @@ void Symmetry::hermite_normal_form(const ModuleBase::Matrix3 &s3, ModuleBase::Ma
ModuleBase::matrix check_zeros =s3.to_matrix() * b -h;
for (int i=0;i<3;++i)
for(int j=0;j<3;++j)
assert(equal(check_zeros(i, j), 0));
assert(near_equal(check_zeros(i, j), 0));
return;
}
}

0 comments on commit f6f4ac3

Please sign in to comment.