From 0a02c3c78c6034408097122812181ed603cbe1c9 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer <akohlmey@gmail.com> Date: Fri, 20 Oct 2017 16:56:06 -0400 Subject: [PATCH] fix segfault bug for in fix rigid/small found by regression testing --- src/RIGID/fix_rigid_small.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/RIGID/fix_rigid_small.cpp b/src/RIGID/fix_rigid_small.cpp index 13208d4c4c..e6083f6493 100644 --- a/src/RIGID/fix_rigid_small.cpp +++ b/src/RIGID/fix_rigid_small.cpp @@ -114,6 +114,7 @@ FixRigidSmall::FixRigidSmall(LAMMPS *lmp, int narg, char **arg) : if (strcmp(arg[3],"molecule") == 0) { if (atom->molecule_flag == 0) error->all(FLERR,"Fix rigid/small requires atom attribute molecule"); + bodyid = atom->molecule; } else if (strcmp(arg[3],"custom") == 0) { if (narg < 5) error->all(FLERR,"Illegal fix rigid/small command"); -- GitLab