expose new introspection to library interfaces for consistency

This commit is contained in:
Axel Kohlmeyer
2024-08-07 10:37:20 -04:00
parent 937c17f3b8
commit f197ce3165
7 changed files with 52 additions and 0 deletions

View File

@ -1969,6 +1969,21 @@ class lammps(object):
# -------------------------------------------------------------------------
@property
def has_curl_support(self):
""" Report whether the LAMMPS shared library was compiled with support
for downloading files through libcurl.
This is a wrapper around the :cpp:func:`lammps_config_has_curl_support`
function of the library interface.
:return: state of CURL support
:rtype: bool
"""
return self.lib.lammps_config_has_curl_support() != 0
# -------------------------------------------------------------------------
def has_package(self, name):
""" Report if the named package has been enabled in the LAMMPS shared library.