replace MPI_Wtime() with platform::walltime()
This commit is contained in:
@ -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"
|
||||
|
||||
Reference in New Issue
Block a user