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

@ -17,7 +17,7 @@
</H3>
<P><B>Syntax:</B>
</P>
<PRE>pair_style style Kn, gamma_n xmu dampflag
<PRE>pair_style style Kn gamma_n xmu dampflag
</PRE>
<UL><LI>style = <I>gran/hertzian</I> or <I>gran/history</I> or <I>gran/no_history</I>

View File

@ -12,7 +12,7 @@ pair_style gran/no_history command :h3
[Syntax:]
pair_style style Kn, gamma_n xmu dampflag :pre
pair_style style Kn gamma_n xmu dampflag :pre
style = {gran/hertzian} or {gran/history} or {gran/no_history} :ulb,l
Kn = spring constant for particle repulsion :l

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;