fix string formatting bugs in fix npt/cauchy

This commit is contained in:
Axel Kohlmeyer
2021-09-24 15:52:01 -04:00
parent 973cf017a9
commit 2df1107561

View File

@ -2454,7 +2454,7 @@ double FixNPTCauchy::memory_usage()
void FixNPTCauchy::CauchyStat_init()
{
if (comm->me == 0) {
std::string mesg = fmt::format("Using fix npt/cauchy with alpha={:f.8}\n",alpha);
std::string mesg = fmt::format("Using fix npt/cauchy with alpha={:.8f}\n",alpha);
if (restartPK==1) {
mesg += " (this is a continuation run)\n";
} else {
@ -2475,7 +2475,7 @@ void FixNPTCauchy::CauchyStat_init()
error->all(FLERR,"Illegal fix npt/cauchy command: Alpha cannot be zero or negative.");
if (restart_stored < 0) {
modify->add_fix(std::string(id_store) + "all STORE global 1 6");
modify->add_fix(std::string(id_store) + " all STORE global 1 6");
restart_stored = modify->find_fix(id_store);
}
init_store = (FixStore *)modify->fix[restart_stored];