forked from lijiext/lammps
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@11249 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
parent
4ae92e2cc3
commit
961be6ee48
File diff suppressed because one or more lines are too long
|
@ -315,7 +315,7 @@ void *lammps_extract_fix(void *ptr, char *id, int style, int type,
|
|||
which the caller can cast to a (double *) which points to the values
|
||||
returns a NULL if name is not recognized or not equal-style or atom-style
|
||||
IMPORTANT: for both equal-style and atom-style variables,
|
||||
this function allocates memory to store the variable data in
|
||||
this function allocates memory to store the variable data,
|
||||
so the caller must free this memory to avoid a leak
|
||||
e.g. for equal-style variables
|
||||
double *dptr = (double *) lammps_extract_variable();
|
||||
|
|
Loading…
Reference in New Issue