Skip to content

Commit

Permalink
[pre-commit.ci lite] apply automatic fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci-lite[bot] authored Oct 18, 2024
1 parent 2617f37 commit 8bb6af4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/module_cell/module_symmetry/symmetry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1001,7 +1001,7 @@ bool Symmetry::checksym(const ModuleBase::Matrix3& s, ModuleBase::Vector3<double
// the start atom index.
bool no_diff = false;
ModuleBase::Vector3<double> trans(2.0, 2.0, 2.0);
bool s_flag = 0;
bool s_flag = false;

for (int it = 0; it < ntype; it++)
{
Expand Down Expand Up @@ -1123,7 +1123,7 @@ bool Symmetry::checksym(const ModuleBase::Matrix3& s, ModuleBase::Vector3<double
//the current test is successful
if (no_diff == true)
{
s_flag = 1;
s_flag = true;
//save the detected translation std::vector temporarily
trans.x = gtrans.x;
trans.y = gtrans.y;
Expand Down

0 comments on commit 8bb6af4

Please sign in to comment.