From 315c829bd2f41948e5e027e3a1a2dc3cc3ebeee3 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Mon, 13 Jul 2020 15:59:47 -0400 Subject: [PATCH] tweak box output format to include decimal point --- src/domain.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/domain.cpp b/src/domain.cpp index 33c49c640d..81de88d1ee 100644 --- a/src/domain.cpp +++ b/src/domain.cpp @@ -1939,13 +1939,13 @@ void Domain::print_box(const std::string &prefix) if (comm->me == 0) { std::string mesg = prefix; if (triclinic == 0) { - mesg += fmt::format("orthogonal box = ({:.8g} {:.8g} {:.8g}) to " - "({:.8g} {:.8g} {:.8g})\n",boxlo[0],boxlo[1], + mesg += fmt::format("orthogonal box = ({:.8} {:.8} {:.8}) to " + "({:.8} {:.8} {:.8})\n",boxlo[0],boxlo[1], boxlo[2],boxhi[0],boxhi[1],boxhi[2]); } else { - mesg += fmt::format("triclinic box = ({:.8g} {:.8g} {:.8g}) to " - "({:.8g} {:.8g} {:.8g}) with tilt " - "({:.8g} {:.8g} {:.8g})\n",boxlo[0],boxlo[1], + mesg += fmt::format("triclinic box = ({:.8} {:.8} {:.8}) to " + "({:.8} {:.8} {:.8}) with tilt " + "({:.8} {:.8} {:.8})\n",boxlo[0],boxlo[1], boxlo[2],boxhi[0],boxhi[1],boxhi[2],xy,xz,yz); } utils::logmesg(lmp,mesg);