tweak box output format to include decimal point

This commit is contained in:
Axel Kohlmeyer
2020-07-13 15:59:47 -04:00
parent c589dd5894
commit 315c829bd2

View File

@ -1939,13 +1939,13 @@ void Domain::print_box(const std::string &prefix)
if (comm->me == 0) { if (comm->me == 0) {
std::string mesg = prefix; std::string mesg = prefix;
if (triclinic == 0) { if (triclinic == 0) {
mesg += fmt::format("orthogonal box = ({:.8g} {:.8g} {:.8g}) to " mesg += fmt::format("orthogonal box = ({:.8} {:.8} {:.8}) to "
"({:.8g} {:.8g} {:.8g})\n",boxlo[0],boxlo[1], "({:.8} {:.8} {:.8})\n",boxlo[0],boxlo[1],
boxlo[2],boxhi[0],boxhi[1],boxhi[2]); boxlo[2],boxhi[0],boxhi[1],boxhi[2]);
} else { } else {
mesg += fmt::format("triclinic box = ({:.8g} {:.8g} {:.8g}) to " mesg += fmt::format("triclinic box = ({:.8} {:.8} {:.8}) to "
"({:.8g} {:.8g} {:.8g}) with tilt " "({:.8} {:.8} {:.8}) with tilt "
"({:.8g} {:.8g} {:.8g})\n",boxlo[0],boxlo[1], "({:.8} {:.8} {:.8})\n",boxlo[0],boxlo[1],
boxlo[2],boxhi[0],boxhi[1],boxhi[2],xy,xz,yz); boxlo[2],boxhi[0],boxhi[1],boxhi[2],xy,xz,yz);
} }
utils::logmesg(lmp,mesg); utils::logmesg(lmp,mesg);