reduce compiler warnings by avoiding to redeclare variables so they shadow others

This commit is contained in:
Axel Kohlmeyer
2021-04-23 15:35:45 -04:00
parent 5a12baeef9
commit 8541b0da3e
18 changed files with 60 additions and 76 deletions

View File

@ -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]);