From 5295bb51098394803fee730e9c85d4c590adc4d3 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Thu, 5 Aug 2021 12:20:20 -0400 Subject: [PATCH] fix refactoring bugs --- src/REPLICA/fix_grem.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/REPLICA/fix_grem.cpp b/src/REPLICA/fix_grem.cpp index 07b8051225..743d31fe96 100644 --- a/src/REPLICA/fix_grem.cpp +++ b/src/REPLICA/fix_grem.cpp @@ -76,20 +76,19 @@ FixGrem::FixGrem(LAMMPS *lmp, int narg, char **arg) : // pass id_temp as 4th arg to pressure constructor id_press = utils::strdup(std::string(id) + "_press"); - modify->add_compute(fmt::format("{} all PRESSURE/GREM {}", - id_press, id_temp)); + modify->add_compute(fmt::format("{} all PRESSURE/GREM {} {}", id_press, id_temp, id)); // create a new compute ke style // id = fix-ID + ke id_ke = utils::strdup(std::string(id) + "_ke"); - modify->add_compute(fmt::format("{} all ke",id_temp)); + modify->add_compute(fmt::format("{} all ke",id_ke)); // create a new compute pe style // id = fix-ID + pe id_pe = utils::strdup(std::string(id) + "_pe"); - modify->add_compute(fmt::format("{} all pe",id_temp)); + modify->add_compute(fmt::format("{} all pe",id_pe)); int ifix = modify->find_fix(id_nh); if (ifix < 0)