also support bcolor, bdiam
(type label support)
This commit is contained in:
@ -1588,7 +1588,7 @@ int DumpImage::modify_param(int narg, char **arg)
|
||||
if (atom->nbondtypes == 0)
|
||||
error->all(FLERR,"Dump modify bcolor not allowed with no bond types");
|
||||
int nlo,nhi;
|
||||
utils::bounds(FLERR,arg[1],1,atom->nbondtypes,nlo,nhi,error);
|
||||
utils::bounds_typelabel(FLERR,arg[1],1,atom->nbondtypes,nlo,nhi,lmp,Atom::BOND);
|
||||
|
||||
// process list of ncount colornames separated by '/'
|
||||
// assign colors in round-robin fashion to bond types
|
||||
@ -1611,7 +1611,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;
|
||||
utils::bounds(FLERR,arg[1],1,atom->nbondtypes,nlo,nhi,error);
|
||||
utils::bounds_typelabel(FLERR,arg[1],1,atom->nbondtypes,nlo,nhi,lmp,Atom::BOND);
|
||||
double diam = utils::numeric(FLERR,arg[2],false,lmp);
|
||||
if (diam <= 0.0) error->all(FLERR,"Illegal dump_modify command");
|
||||
for (int i = nlo; i <= nhi; i++) bdiamtype[i] = diam;
|
||||
|
||||
Reference in New Issue
Block a user