add atom_modify map yes, also timers to create_atoms and replicate

This commit is contained in:
Steve Plimpton
2017-10-05 16:44:24 -06:00
parent f2c1172741
commit 214c0cfb2b
8 changed files with 86 additions and 48 deletions

View File

@ -74,6 +74,11 @@ 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
MPI_Barrier(world);
double time1 = MPI_Wtime();
// maxtag = largest atom tag across all existing atoms
tagint maxtag = 0;
@ -424,4 +429,16 @@ void Replicate::command(int narg, char **arg)
Special special(lmp);
special.build();
}
// CPU time
MPI_Barrier(world);
double time2 = MPI_Wtime();
if (me == 0) {
if (screen)
fprintf(screen," CPU time = %g secs\n",time2-time1);
if (logfile)
fprintf(logfile," CPU time = %g secs\n",time2-time1);
}
}