Skip to content
Snippets Groups Projects
Commit 79cae511 authored by Richard Berger's avatar Richard Berger
Browse files

Document property 'uses_exceptions' of Python interface

parent a2108670
No related branches found
No related tags found
No related merge requests found
...@@ -379,10 +379,10 @@ class lammps(object): ...@@ -379,10 +379,10 @@ class lammps(object):
type_lmp[:] = type type_lmp[:] = type
self.lib.lammps_create_atoms(self.lmp,n,id_lmp,type_lmp,x,v,image_lmp,shrinkexceed) self.lib.lammps_create_atoms(self.lmp,n,id_lmp,type_lmp,x,v,image_lmp,shrinkexceed)
# document this?
@property @property
def uses_exceptions(self): def uses_exceptions(self):
""" Return whether the LAMMPS shared library was compiled with C++ exceptions handling enabled """
try: try:
if self.lib.lammps_has_error: if self.lib.lammps_has_error:
return True return True
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment