From 8a630ff4ec8aef64668046f28e87a68de84bf843 Mon Sep 17 00:00:00 2001 From: Richard Berger Date: Mon, 22 May 2017 17:32:07 -0400 Subject: [PATCH] Fixes coverity issue CID 179440 --- src/PYTHON/fix_python.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/PYTHON/fix_python.cpp b/src/PYTHON/fix_python.cpp index 88a1a5088d..ffca66e77c 100644 --- a/src/PYTHON/fix_python.cpp +++ b/src/PYTHON/fix_python.cpp @@ -47,6 +47,8 @@ FixPython::FixPython(LAMMPS *lmp, int narg, char **arg) : selected_callback = POST_FORCE; } else if (strcmp(arg[4],"end_of_step") == 0) { selected_callback = END_OF_STEP; + } else { + error->all(FLERR,"Unsupported callback name for fix/python"); } // get Python function