From 3358fe36d1ae7c8723dd454d00e00ff3d200ca13 Mon Sep 17 00:00:00 2001 From: jtclemm Date: Thu, 8 Feb 2024 21:27:58 -0700 Subject: [PATCH] Fixing bugs in child arg parsing --- src/fix_deform.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fix_deform.cpp b/src/fix_deform.cpp index 010250ed92..4b774b79d3 100644 --- a/src/fix_deform.cpp +++ b/src/fix_deform.cpp @@ -64,7 +64,7 @@ irregular(nullptr), set(nullptr) int nskip; if (utils::strmatch(style, "^deform/pressure")) { child_parameters.insert("box"); - child_styles.insert({{"pressure", 4}, {"pressure/mean", 4}, {"volume", 3}}); + child_styles.insert({{"pressure", 4}, {"pressure/mean", 4}, {"volume", 2}}); } // set defaults @@ -221,7 +221,7 @@ irregular(nullptr), set(nullptr) utils::missing_cmd_args(FLERR, fmt::format("fix {} {}", style, arg[iarg + 1]), error); for (int i = 0; i < nskip; i++) leftover_iarg.push_back(iarg + i); iarg += nskip; - } error->all(FLERR, "Illegal fix {} command argument: {}", style, arg[iarg + 1]); + } else error->all(FLERR, "Illegal fix {} command argument: {}", style, arg[iarg + 1]); } else break; }