git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@99 f3b2605a-c512-4ea7-a41b-209d697bcdaa

This commit is contained in:
sjplimp
2006-10-31 22:16:12 +00:00
parent 40b67f592f
commit ed0d30f88d
16 changed files with 72 additions and 53 deletions

View File

@ -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;