replace MPI_Wtime() with platform::walltime()

This commit is contained in:
Axel Kohlmeyer
2021-10-05 22:53:39 -04:00
parent f17aeebbcd
commit 8b36061db4
77 changed files with 175 additions and 189 deletions

View File

@ -259,7 +259,7 @@ void Balance::command(int narg, char **arg)
// must reset atom map after exchange() since it clears it
MPI_Barrier(world);
double start_time = MPI_Wtime();
double start_time = platform::walltime();
lmp->init();
@ -386,7 +386,7 @@ void Balance::command(int narg, char **arg)
if (me == 0) {
std::string mesg = fmt::format(" rebalancing time: {:.3f} seconds\n",
MPI_Wtime()-start_time);
platform::walltime()-start_time);
mesg += fmt::format(" iteration count = {}\n",niter);
for (int i = 0; i < nimbalance; ++i) mesg += imbalances[i]->info();
mesg += fmt::format(" initial/final maximal load/proc = {:.8} {:.8}\n"