Unverified Commit 4d21c333 authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

add python prototypes for exception handling functions

parent 972352ae
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -265,6 +265,12 @@ class lammps(object):
    self.lib.lammps_neighlist_element_neighbors.argtypes = [c_void_p, c_int, c_int, POINTER(c_int), POINTER(c_int), POINTER(POINTER(c_int))]
    self.lib.lammps_neighlist_element_neighbors.restype  = None

    self.lib.lammps_has_error.argtypes = [v_void_p]
    self.lib.lammps_has_error.restype = c_bool

    self.lib.lammps_get_last_error_message.argtypes = [c_void_p, c_char_p, c_int]
    self.lib.lammps_get_last_error_message.restype = c_int

    # detect if Python is using version of mpi4py that can pass a communicator

    self.has_mpi4py = False