address output issue reported by GitHub Copilot (but properly and in both locations)

This commit is contained in:
Axel Kohlmeyer
2025-06-11 04:33:25 -04:00
parent 6ccb1b745c
commit 2d8ef50e49
2 changed files with 2 additions and 2 deletions

View File

@ -94,7 +94,7 @@ void KSpaceZero2::init()
g_ewald = sqrt(-log(g_ewald)) / cutoff; g_ewald = sqrt(-log(g_ewald)) / cutoff;
} }
if (comm->me == 0) std::string mesg = fmt::format(" G vector (1/distance) = {:.8g}\n", g_ewald); if (comm->me == 0) utils::logmesg(lmp, " G vector (1/distance) = {:.8g}\n", g_ewald);
} }
/* ---------------------------------------------------------------------- */ /* ---------------------------------------------------------------------- */

View File

@ -94,7 +94,7 @@ void KSpaceZero::init()
g_ewald = sqrt(-log(g_ewald)) / cutoff; g_ewald = sqrt(-log(g_ewald)) / cutoff;
} }
if (comm->me == 0) std::string mesg = fmt::format(" G vector (1/distance) = {:.8g}\n", g_ewald); if (comm->me == 0) utils::logmesg(lmp, " G vector (1/distance) = {:.8g}\n", g_ewald);
} }
/* ---------------------------------------------------------------------- */ /* ---------------------------------------------------------------------- */