Commit f76f2c88 authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

minor tweaks and comment fixes

(cherry picked from commit f14e9cee83da851baec49d11859b5add791bfed6)
parent 7d08d999
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -23,7 +23,7 @@ style = {shift} or {rcb} :l
    stopthresh = stop balancing when this imbalance threshhold is reached
  rcb args = none :pre
zero or more keyword/value pairs may be appended :l
keyword = {out} or {group} :l
keyword = {out} or {clock} or {group} :l
  {out} value = filename
    filename = write each processor's sub-domain to a file, at each re-balancing
  {clock} value = weight
+5 −6
Original line number Diff line number Diff line
@@ -496,10 +496,10 @@ void Balance::imbalance_clock(double factor)

#if BALANCE_DEBUG
    if (me == 0) {
      printf("clock imbalance scaled using factor %g\n",factor);
      fprintf(stderr,"Clock imbalance using factor %g\n",factor);
      for (int i = 0; i < nprocs; ++i)
        printf(" % 2d: %4.2f",i,clock_imbalance[i]);
      puts("");
        fprintf(stderr," % 2d: %4.2f",i,clock_imbalance[i]);
      fputs("\n",stderr);
    }
#endif

@@ -508,7 +508,7 @@ void Balance::imbalance_clock(double factor)
}

/* ----------------------------------------------------------------------
   calculate imbalance based on (weighted) nlocal
   calculate imbalance based on (weighted) local atom counts
   return max = max atom per proc
   return imbalance factor = max atom per proc / ave atom per proc
------------------------------------------------------------------------- */
@@ -645,7 +645,6 @@ int *Balance::bisection(int sortflag)
  for (int i = 0; i < nlocal; i++)
    weights[i] = getcost(i)*factor;

  //rcb->compute(dim,atom->nlocal,atom->x,NULL,boxlo,boxhi);
  rcb->compute(dim,atom->nlocal,atom->x,weights,shrinklo,shrinkhi);
  rcb->invert(sortflag);
  delete[] weights;