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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;