Skip to content

Commit 8bb6af4

Browse files
[pre-commit.ci lite] apply automatic fixes
1 parent 2617f37 commit 8bb6af4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/module_cell/module_symmetry/symmetry.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1001,7 +1001,7 @@ bool Symmetry::checksym(const ModuleBase::Matrix3& s, ModuleBase::Vector3<double
10011001
// the start atom index.
10021002
bool no_diff = false;
10031003
ModuleBase::Vector3<double> trans(2.0, 2.0, 2.0);
1004-
bool s_flag = 0;
1004+
bool s_flag = false;
10051005

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

0 commit comments

Comments
 (0)