python: deprecated pylammps interface
This commit is contained in:
@ -428,6 +428,8 @@ class PyLammps(object):
|
|||||||
lower-level interface. The original interface can still be accessed via
|
lower-level interface. The original interface can still be accessed via
|
||||||
:py:attr:`PyLammps.lmp`.
|
:py:attr:`PyLammps.lmp`.
|
||||||
|
|
||||||
|
.. deprecated:: TBA
|
||||||
|
|
||||||
:param name: "machine" name of the shared LAMMPS library ("mpi" loads ``liblammps_mpi.so``, "" loads ``liblammps.so``)
|
:param name: "machine" name of the shared LAMMPS library ("mpi" loads ``liblammps_mpi.so``, "" loads ``liblammps.so``)
|
||||||
:type name: string
|
:type name: string
|
||||||
:param cmdargs: list of command line arguments to be passed to the :cpp:func:`lammps_open` function. The executable name is automatically added.
|
:param cmdargs: list of command line arguments to be passed to the :cpp:func:`lammps_open` function. The executable name is automatically added.
|
||||||
@ -447,6 +449,12 @@ class PyLammps(object):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, name="", cmdargs=None, ptr=None, comm=None, verbose=False):
|
def __init__(self, name="", cmdargs=None, ptr=None, comm=None, verbose=False):
|
||||||
|
print("WARNING-WARNING-WARNING-WARNING-WARNING-WARNING-WARNING-WARNING")
|
||||||
|
print()
|
||||||
|
print("The PyLammps interface is deprecated and will be removed in future versions.")
|
||||||
|
print("Please use the lammps Python class instead.")
|
||||||
|
print()
|
||||||
|
print("WARNING-WARNING-WARNING-WARNING-WARNING-WARNING-WARNING-WARNING")
|
||||||
self.has_echo = False
|
self.has_echo = False
|
||||||
self.verbose = verbose
|
self.verbose = verbose
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user