lmp.extract_compute
Hi,
I am using 'lmp.extract_compute' in the python. This function could give the right value belong to compute class, but the return value is not ordered by ID. So I checked the library.cpp. I modify the cpp like the function 'data = lmp.gather_atoms(name,type,count)' which could return the value ordered by ID. But I failed. I will appreciate if anyone could help me.
The original cpp shows as follows:
void *lammps_extract_compute(void *ptr, char *id, int style, int type)
{
LAMMPS *lmp = (LAMMPS *) ptr;
Forums:
- Read more about lmp.extract_compute
- 3 comments
- Log in or register to post comments