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

This commit is contained in:
sjplimp
2006-11-17 19:13:19 +00:00
parent c7a515ac6d
commit 89753028d7
3 changed files with 5 additions and 3 deletions

View File

@ -38,7 +38,7 @@ void CreateAtoms::command(int narg, char **arg)
// parse arguments
int nbasis = domain->lattice->nbasis;
int basistype[nbasis];
int *basistype = new int[nbasis];
if (narg < 1) error->all("Illegal create_atoms command");
int itype = atoi(arg[0]);
@ -133,6 +133,8 @@ void CreateAtoms::command(int narg, char **arg)
for (m = 0; m < nbasis; m++)
add_atom(basistype[m],i+basis[m][0],j+basis[m][1],k+basis[m][2]);
delete [] basistype;
// new total # of atoms
double rlocal = atom->nlocal;