diff --git a/src/input.cpp b/src/input.cpp index 6a635fffb9..1486923622 100644 --- a/src/input.cpp +++ b/src/input.cpp @@ -452,8 +452,12 @@ int Input::execute_command() else flag = 0; + // return if command was listed above + if (flag) return 0; + // check if command is added via style.h + if (0) return 0; // dummy line to enable else-if macro expansion #define CommandClass @@ -466,6 +470,8 @@ int Input::execute_command() #include "style.h" #undef CommandClass + // unrecognized command + return -1; } diff --git a/src/modify.cpp b/src/modify.cpp index 5f7e568cf2..6d6c85da56 100644 --- a/src/modify.cpp +++ b/src/modify.cpp @@ -234,7 +234,7 @@ void Modify::end_of_step() /* ---------------------------------------------------------------------- thermo energy call only for relevant fixes - called by Thermo clas + called by Thermo class arg to Fix thermo() is 0, so fix will return its energy contribution ------------------------------------------------------------------------- */