update load balancing output to use utils::logmesg() and {fmt}

This commit is contained in:
Axel Kohlmeyer
2020-06-03 21:21:58 -04:00
parent 9e8ce240a0
commit c0fb794848
13 changed files with 67 additions and 88 deletions

View File

@ -20,6 +20,7 @@
#include "variable.h"
#include "memory.h"
#include "error.h"
#include "fmt/format.h"
using namespace LAMMPS_NS;
@ -88,7 +89,7 @@ void ImbalanceVar::compute(double *weight)
/* -------------------------------------------------------------------- */
void ImbalanceVar::info(FILE *fp)
std::string ImbalanceVar::info()
{
fprintf(fp," weight variable: %s\n",name);
return fmt::format(" weight variable: {}\n",name);
}