forked from lijiext/lammps
require an atom map for compute voronoi/atom occupation
(cherry picked from commit 2b53f80392
)
This commit is contained in:
parent
dd34feb2bd
commit
16323ba391
|
@ -127,6 +127,9 @@ ComputeVoronoi::ComputeVoronoi(LAMMPS *lmp, int narg, char **arg) :
|
|||
if (occupation && ( surface!=VOROSURF_NONE || maxedge>0 ) )
|
||||
error->all(FLERR,"Illegal compute voronoi/atom command (occupation and (surface or edges))");
|
||||
|
||||
if (occupation && (atom->map_style == 0))
|
||||
error->all(FLERR,"Compute voronoi/atom occupation requires an atom map, see atom_modify");
|
||||
|
||||
nmax = rmax = 0;
|
||||
edge = rfield = sendvector = NULL;
|
||||
voro = NULL;
|
||||
|
|
Loading…
Reference in New Issue