reduce compiler warnings by avoiding to redeclare variables so they shadow others
This commit is contained in:
@ -919,7 +919,7 @@ int Balance::shift()
|
||||
// do this with minimal adjustment to splits
|
||||
|
||||
double close = (1.0+EPSNEIGH) * neighbor->skin / boxsize;
|
||||
double delta,midpt,start,stop,lbound,ubound,spacing;
|
||||
double midpt,start,stop,lbound,ubound,spacing;
|
||||
|
||||
i = 0;
|
||||
while (i < np) {
|
||||
@ -1094,7 +1094,7 @@ int Balance::adjust(int n, double *split)
|
||||
}
|
||||
|
||||
int change = 0;
|
||||
for (int i = 1; i < n; i++)
|
||||
for (i = 1; i < n; i++)
|
||||
if (sum[i] != target[i]) {
|
||||
change = 1;
|
||||
if (rho == 0) split[i] = 0.5 * (lo[i]+hi[i]);
|
||||
|
||||
Reference in New Issue
Block a user