Add missing code highlights
This commit is contained in:
@ -2,14 +2,14 @@ Extending the library and Python interface
|
|||||||
******************************************
|
******************************************
|
||||||
|
|
||||||
As noted above, these Python class methods correspond one-to-one with
|
As noted above, these Python class methods correspond one-to-one with
|
||||||
the functions in the LAMMPS library interface in src/library.cpp and
|
the functions in the LAMMPS library interface in ``src/library.cpp`` and
|
||||||
library.h. This means you can extend the Python wrapper via the
|
``library.h``. This means you can extend the Python wrapper via the
|
||||||
following steps:
|
following steps:
|
||||||
|
|
||||||
* Add a new interface function to src/library.cpp and
|
* Add a new interface function to ``src/library.cpp`` and
|
||||||
src/library.h.
|
``src/library.h``.
|
||||||
* Rebuild LAMMPS as a shared library.
|
* Rebuild LAMMPS as a shared library.
|
||||||
* Add a wrapper method to python/lammps.py for this interface
|
* Add a wrapper method to ``python/lammps.py`` for this interface
|
||||||
function.
|
function.
|
||||||
* You should now be able to invoke the new interface function from a
|
* You should now be able to invoke the new interface function from a
|
||||||
Python script.
|
Python script.
|
||||||
|
|||||||
Reference in New Issue
Block a user