Commit 58e1969d authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

rename misleading "CPU time" into "Time spent"

parent 214c0cfb
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -343,7 +343,7 @@ void CreateAtoms::command(int narg, char **arg)
    }
  }

  // CPU time
  // Record wall time for atom creation

  MPI_Barrier(world);
  double time1 = MPI_Wtime();
@@ -532,12 +532,12 @@ void CreateAtoms::command(int narg, char **arg)
    if (screen) {
      fprintf(screen,"Created " BIGINT_FORMAT " atoms\n",
              atom->natoms-natoms_previous);
      fprintf(screen,"  CPU time = %g secs\n",time2-time1);
      fprintf(screen,"  Time spent = %g secs\n",time2-time1);
    }
    if (logfile) {
      fprintf(logfile,"Created " BIGINT_FORMAT " atoms\n",
              atom->natoms-natoms_previous);
      fprintf(logfile,"  CPU time = %g secs\n",time2-time1);
      fprintf(logfile,"  Time spent = %g secs\n",time2-time1);
    }
  }

+4 −4
Original line number Diff line number Diff line
@@ -74,7 +74,7 @@ void Replicate::command(int narg, char **arg)
  if (atom->nextra_grow || atom->nextra_restart || atom->nextra_store)
    error->all(FLERR,"Cannot replicate with fixes that store atom quantities");

  // CPU time
  // Record wall time for atom replication

  MPI_Barrier(world);
  double time1 = MPI_Wtime();
@@ -430,15 +430,15 @@ void Replicate::command(int narg, char **arg)
    special.build();
  }

  // CPU time
  // Wall time

  MPI_Barrier(world);
  double time2 = MPI_Wtime();

  if (me == 0) {
    if (screen)
      fprintf(screen,"  CPU time = %g secs\n",time2-time1);
      fprintf(screen,"  Time spent = %g secs\n",time2-time1);
    if (logfile)
      fprintf(logfile,"  CPU time = %g secs\n",time2-time1);
      fprintf(logfile,"  Time spent = %g secs\n",time2-time1);
  }
}