diff --git a/python/lammps.py b/python/lammps.py index 0581b475a4b241decdd6d959d0301e6c3a58e34b..a36abb87e8fd408f953f58f0f5b14b2cb9f38e55 100644 --- a/python/lammps.py +++ b/python/lammps.py @@ -379,10 +379,10 @@ class lammps(object): type_lmp[:] = type self.lib.lammps_create_atoms(self.lmp,n,id_lmp,type_lmp,x,v,image_lmp,shrinkexceed) - # document this? - + @property def uses_exceptions(self): + """ Return whether the LAMMPS shared library was compiled with C++ exceptions handling enabled """ try: if self.lib.lammps_has_error: return True