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

This commit is contained in:
sjplimp
2013-08-02 14:57:38 +00:00
parent 18641fd1d3
commit bd568f0df4
2 changed files with 6 additions and 6 deletions

View File

@ -37,10 +37,10 @@ RegIntersect::RegIntersect(LAMMPS *lmp, int narg, char **arg) :
list = new int[n];
nregion = 0;
int iregion;
int m,iregion;
for (int iarg = 0; iarg < n; iarg++) {
n = strlen(arg[iarg+3]) + 1;
idsub[nregion] = new char[n];
m = strlen(arg[iarg+3]) + 1;
idsub[nregion] = new char[m];
strcpy(idsub[nregion],arg[iarg+3]);
iregion = domain->find_region(idsub[nregion]);
if (iregion == -1)