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

This commit is contained in:
sjplimp
2010-08-24 18:32:11 +00:00
parent 763f2aac79
commit 55d76e6c22
7 changed files with 235 additions and 67 deletions

View File

@ -1584,13 +1584,11 @@ void Atom::update_callback(int ifix)
/* ----------------------------------------------------------------------
return a pointer to a named internal variable
if don't recognize name, return NULL
customize by adding names
------------------------------------------------------------------------- */
void *Atom::extract(char *name)
{
if (strcmp(name,"natoms") == 0) return (void *) &natoms;
if (strcmp(name,"nlocal") == 0) return (void *) &nlocal;
if (strcmp(name,"id") == 0) return (void *) tag;
if (strcmp(name,"type") == 0) return (void *) type;
if (strcmp(name,"x") == 0) return (void *) x;