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

bugfix. avoiding operating on uninitialize data. closes #690

parent 93c9a927
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -844,9 +844,9 @@ void Output::memory_usage()
  MPI_Reduce(&mbytes,&mbavg,1,MPI_DOUBLE,MPI_SUM,0,world);
  MPI_Reduce(&mbytes,&mbmin,1,MPI_DOUBLE,MPI_MIN,0,world);
  MPI_Reduce(&mbytes,&mbmax,1,MPI_DOUBLE,MPI_MAX,0,world);
  mbavg /= comm->nprocs;

  if (comm->me == 0) {
    mbavg /= comm->nprocs;
    if (screen)
      fprintf(screen,"Per MPI rank memory allocation (min/avg/max) = "
              "%.4g | %.4g | %.4g Mbytes\n",mbmin,mbavg,mbmax);