git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@3481 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -100,7 +100,7 @@ void ComputeCentroAtom::compute_peratom()
|
||||
memory->sfree(centro);
|
||||
nmax = atom->nmax;
|
||||
centro = (double *)
|
||||
memory->smalloc(nmax*sizeof(double),"compute/centro:centro");
|
||||
memory->smalloc(nmax*sizeof(double),"centro/atom:centro");
|
||||
scalar_atom = centro;
|
||||
}
|
||||
|
||||
@ -137,9 +137,9 @@ void ComputeCentroAtom::compute_peratom()
|
||||
memory->sfree(nearest);
|
||||
maxneigh = jnum;
|
||||
distsq = (double *) memory->smalloc(maxneigh*sizeof(double),
|
||||
"compute/centro:distsq");
|
||||
"centro/atom:distsq");
|
||||
nearest = (int *) memory->smalloc(maxneigh*sizeof(int),
|
||||
"compute/centro:nearest");
|
||||
"centro/atom:nearest");
|
||||
}
|
||||
|
||||
// loop over list of all neighbors within force cutoff
|
||||
|
||||
Reference in New Issue
Block a user