Add and use lammps_flush_buffers() in Python interface
This commit is contained in:
@ -164,6 +164,7 @@ class lammps(object):
|
||||
self.lib.lammps_open.restype = c_void_p
|
||||
self.lib.lammps_open_no_mpi.restype = c_void_p
|
||||
self.lib.lammps_close.argtypes = [c_void_p]
|
||||
self.lib.lammps_flush_buffers.argtypes = [c_void_p]
|
||||
self.lib.lammps_free.argtypes = [c_void_p]
|
||||
|
||||
self.lib.lammps_file.argtypes = [c_void_p, c_char_p]
|
||||
@ -1118,6 +1119,16 @@ class lammps(object):
|
||||
|
||||
# -------------------------------------------------------------------------
|
||||
|
||||
def flush_buffers(self):
|
||||
"""Flush output buffers
|
||||
|
||||
This is a wrapper around the :cpp:func:`lammps_flush_buffers`
|
||||
function of the C-library interface.
|
||||
"""
|
||||
self.lib.lammps_flush_buffers(self.lmp)
|
||||
|
||||
# -------------------------------------------------------------------------
|
||||
|
||||
def set_variable(self,name,value):
|
||||
"""Set a new value for a LAMMPS string style variable
|
||||
|
||||
|
||||
Reference in New Issue
Block a user