expose document and test more atom style property flags
This commit is contained in:
@ -961,6 +961,18 @@ not recognized, the function returns -1.
|
||||
- 1 if the atom style includes point dipoles. See :doc:`atom_style`.
|
||||
* - rmass_flag
|
||||
- 1 if the atom style includes per-atom masses, 0 if there are per-type masses. See :doc:`atom_style`.
|
||||
* - radius_flag
|
||||
- 1 if the atom style includes a per-atom radius. See :doc:`atom_style`.
|
||||
* - sphere_flag
|
||||
- 1 if the atom style describes extended particles that can rotate. See :doc:`atom_style`.
|
||||
* - ellipsoid_flag
|
||||
- 1 if the atom style describes extended particles that may be ellipsoidal. See :doc:`atom_style`.
|
||||
* - omega_flag
|
||||
- 1 if the atom style can store per-atom rotational velocities. See :doc:`atom_style`.
|
||||
* - torque_flag
|
||||
- 1 if the atom style can store per-atom torques. See :doc:`atom_style`.
|
||||
* - angmom_flag
|
||||
- 1 if the atom style can store per-atom angular momentum. See :doc:`atom_style`.
|
||||
|
||||
*See also*
|
||||
:cpp:func:`lammps_extract_global`
|
||||
@ -998,6 +1010,13 @@ int lammps_extract_setting(void *handle, const char *keyword)
|
||||
if (strcmp(keyword,"q_flag") == 0) return lmp->atom->q_flag;
|
||||
if (strcmp(keyword,"mu_flag") == 0) return lmp->atom->mu_flag;
|
||||
if (strcmp(keyword,"rmass_flag") == 0) return lmp->atom->rmass_flag;
|
||||
if (strcmp(keyword,"radius_flag") == 0) return lmp->atom->radius_flag;
|
||||
if (strcmp(keyword,"sphere_flag") == 0) return lmp->atom->sphere_flag;
|
||||
if (strcmp(keyword,"ellipsoid_flag") == 0) return lmp->atom->ellipsoid_flag;
|
||||
if (strcmp(keyword,"omega_flag") == 0) return lmp->atom->omega_flag;
|
||||
if (strcmp(keyword,"torque_flag") == 0) return lmp->atom->torque_flag;
|
||||
if (strcmp(keyword,"angmom_flag") == 0) return lmp->atom->angmom_flag;
|
||||
if (strcmp(keyword,"peri_flag") == 0) return lmp->atom->peri_flag;
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user