git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@99 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -24,9 +24,13 @@
|
||||
|
||||
RegIntersect::RegIntersect(int narg, char **arg) : Region(narg, arg)
|
||||
{
|
||||
if (narg < 5) error->all("Illegal region command");
|
||||
int n = atoi(arg[2]);
|
||||
if (n < 2) error->all("Illegal region command");
|
||||
options(narg-(n+3),&arg[n+3]);
|
||||
|
||||
// build list of regions to intersect
|
||||
|
||||
int n = atoi(arg[2]);
|
||||
list = new int[n];
|
||||
nregion = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user