Skip to content
Snippets Groups Projects
Commit f4d0aa33 authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

correct cut-n-paste bug reported by Massimo Pica Ciamarra on lammps-users

parent 39df9f5d
No related branches found
No related tags found
No related merge requests found
......@@ -1345,7 +1345,7 @@ int DumpImage::modify_param(int narg, char **arg)
if (atom->nbondtypes == 0)
error->all(FLERR,"Dump modify bdiam not allowed with no bond types");
int nlo,nhi;
force->bounds(FLERR,arg[1],atom->ntypes,nlo,nhi);
force->bounds(FLERR,arg[1],atom->nbondtypes,nlo,nhi);
double diam = force->numeric(FLERR,arg[2]);
if (diam <= 0.0) error->all(FLERR,"Illegal dump_modify command");
for (int i = nlo; i <= nhi; i++) bdiamtype[i] = diam;
......
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