git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@165 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user