From f4d0aa33936f036f21473ec03035e91e45c562be Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Fri, 27 Oct 2017 11:25:57 -0400 Subject: [PATCH] correct cut-n-paste bug reported by Massimo Pica Ciamarra on lammps-users --- src/dump_image.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dump_image.cpp b/src/dump_image.cpp index eedfb89992..0e5f57be6b 100644 --- a/src/dump_image.cpp +++ b/src/dump_image.cpp @@ -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;