git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@11249 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
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
|
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
|
returns a NULL if name is not recognized or not equal-style or atom-style
|
||||||
IMPORTANT: for both equal-style and atom-style variables,
|
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
|
so the caller must free this memory to avoid a leak
|
||||||
e.g. for equal-style variables
|
e.g. for equal-style variables
|
||||||
double *dptr = (double *) lammps_extract_variable();
|
double *dptr = (double *) lammps_extract_variable();
|
||||||
|
|||||||
Reference in New Issue
Block a user