From aacb964888431c4f2ef6b7e75bb2a825ae952def Mon Sep 17 00:00:00 2001 From: Sachin Krishnan TV Date: Wed, 3 Jun 2020 11:25:45 +0200 Subject: [PATCH] Parsing of process variable in fix controller corrected --- src/fix_controller.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fix_controller.cpp b/src/fix_controller.cpp index 855869a574..f7012e5565 100644 --- a/src/fix_controller.cpp +++ b/src/fix_controller.cpp @@ -120,7 +120,7 @@ FixController::FixController(LAMMPS *lmp, int narg, char **arg) : "calculate a global scalar or vector"); if (pvindex && pvindex > f->size_vector) error->all(FLERR,"Fix controller fix vector is accessed out-of-range"); - } else if (pvwhich == FIX) { + } else if (pvwhich == VARIABLE) { int ivariable = input->variable->find(pvID); if (ivariable < 0) error->all(FLERR,"Variable name for fix controller does not exist");