Skip to content
Snippets Groups Projects
Commit ce78f694 authored by Steve Plimpton's avatar Steve Plimpton Committed by GitHub
Browse files

Merge pull request #705 from akohlmey/fix_rigid_bugfix

fix segfault bug in fix rigid/small found by regression testing
parents 998aedc6 0a02c3c7
No related branches found
No related tags found
No related merge requests found
...@@ -114,6 +114,7 @@ FixRigidSmall::FixRigidSmall(LAMMPS *lmp, int narg, char **arg) : ...@@ -114,6 +114,7 @@ FixRigidSmall::FixRigidSmall(LAMMPS *lmp, int narg, char **arg) :
if (strcmp(arg[3],"molecule") == 0) { if (strcmp(arg[3],"molecule") == 0) {
if (atom->molecule_flag == 0) if (atom->molecule_flag == 0)
error->all(FLERR,"Fix rigid/small requires atom attribute molecule"); error->all(FLERR,"Fix rigid/small requires atom attribute molecule");
bodyid = atom->molecule;
} else if (strcmp(arg[3],"custom") == 0) { } else if (strcmp(arg[3],"custom") == 0) {
if (narg < 5) error->all(FLERR,"Illegal fix rigid/small command"); if (narg < 5) error->all(FLERR,"Illegal fix rigid/small command");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment