update documentation for the extract_global() method of the lammps.lammps class
This commit is contained in:
@ -729,12 +729,11 @@ class lammps(object):
|
|||||||
def extract_global(self, name, dtype=LAMMPS_AUTODETECT):
|
def extract_global(self, name, dtype=LAMMPS_AUTODETECT):
|
||||||
"""Query LAMMPS about global settings of different types.
|
"""Query LAMMPS about global settings of different types.
|
||||||
|
|
||||||
This is a wrapper around the :cpp:func:`lammps_extract_global`
|
This is a wrapper around the :cpp:func:`lammps_extract_global` function
|
||||||
function of the C-library interface. Unlike the C function
|
of the C-library interface. Since there are no pointers in Python, this
|
||||||
this method returns the value and not a pointer and thus can
|
method will - unlike the C function - return the value or a list of
|
||||||
only return the first value for keywords representing a list
|
values. The :cpp:func:`lammps_extract_global` documentation includes a
|
||||||
of values. The :cpp:func:`lammps_extract_global` documentation
|
list of the supported keywords and their data types.
|
||||||
includes a list of the supported keywords and their data types.
|
|
||||||
Since Python needs to know the data type to be able to interpret
|
Since Python needs to know the data type to be able to interpret
|
||||||
the result, by default, this function will try to auto-detect the data type
|
the result, by default, this function will try to auto-detect the data type
|
||||||
by asking the library. You can also force a specific data type. For that
|
by asking the library. You can also force a specific data type. For that
|
||||||
|
|||||||
Reference in New Issue
Block a user