1 parent be3bc28 commit 08c9aa4Copy full SHA for 08c9aa4
1 file changed
source/source_pw/module_stodft/sto_tool.h
@@ -38,20 +38,20 @@ struct parallel_distribution
38
{
39
parallel_distribution(const int& num_all, const int& np, const int myrank)
40
41
- int num_per = num_all / np;
42
- int st_per = num_per * myrank;
+ int num_per_ = num_all / np;
+ int st_per = num_per_ * myrank;
43
int re = num_all % np;
44
if (myrank < re)
45
46
- ++num_per;
+ ++num_per_;
47
st_per += myrank;
48
}
49
else
50
51
st_per += re;
52
53
this->start = st_per;
54
- this->num_per = num_per;
+ this->num_per = num_per_;
55
56
int start = 0;
57
int num_per = 0;
0 commit comments