Skip to content

Commit 08c9aa4

Browse files
author
abacus_fixer
committed
remove one duplicate name of variables
1 parent be3bc28 commit 08c9aa4

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

source/source_pw/module_stodft/sto_tool.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,20 +38,20 @@ struct parallel_distribution
3838
{
3939
parallel_distribution(const int& num_all, const int& np, const int myrank)
4040
{
41-
int num_per = num_all / np;
42-
int st_per = num_per * myrank;
41+
int num_per_ = num_all / np;
42+
int st_per = num_per_ * myrank;
4343
int re = num_all % np;
4444
if (myrank < re)
4545
{
46-
++num_per;
46+
++num_per_;
4747
st_per += myrank;
4848
}
4949
else
5050
{
5151
st_per += re;
5252
}
5353
this->start = st_per;
54-
this->num_per = num_per;
54+
this->num_per = num_per_;
5555
}
5656
int start = 0;
5757
int num_per = 0;

0 commit comments

Comments
 (0)