git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@14590 f3b2605a-c512-4ea7-a41b-209d697bcdaa

This commit is contained in:
sjplimp
2016-02-15 15:28:30 +00:00
parent 70aa37e4c8
commit 729ba2cc21
13 changed files with 119 additions and 122 deletions

View File

@ -158,8 +158,10 @@ and callbacks to LAMMPS.
To run pure Python code from LAMMPS, you only need to build LAMMPS
with the PYTHON package installed:
make yes-python
make machine
.. parsed-literal::
make yes-python
make machine
Note that this will link LAMMPS with the Python library on your
system, which typically requires several auxiliary system libraries to
@ -189,7 +191,7 @@ Instructions on how to build LAMMPS as a shared library are given in
that is dynamically loadable, which is what Python requires to wrap
LAMMPS. On Linux this is a library file that ends in ".so", not ".a".
>From the src directory, type
From the src directory, type
.. parsed-literal::
@ -202,10 +204,13 @@ load by default. Note that if you are building multiple machine
versions of the shared library, the soft link is always set to the
most recently built version.
If this fails, see :ref:`Section_start 5 <start_5>` for
more details, especially if your LAMMPS build uses auxiliary libraries
like MPI or FFTW which may not be built as shared libraries on your
system.
.. note::
If you are building LAMMPS with an MPI or FFT library or other
auxiliary libraries (used by various packages), then all of these
extra libraries must also be shared libraries. If the LAMMPS
shared-library build fails with an error complaining about this, see
:ref:`Section_start 5 <start_5>` for more details.
----------
@ -723,17 +728,6 @@ version = lmp.version() # return the numerical version id, e.g. LAMMPS 2 Sep 20
----------
.. note::
Currently, the creation of a LAMMPS object from within lammps.py
does not take an MPI communicator as an argument. There should be a
way to do this, so that the LAMMPS instance runs on a subset of
processors if desired, but I don't know how to do it from Pypar. So
for now, it runs with MPI_COMM_WORLD, which is all the processors. If
someone figures out how to do this with one or more of the Python
wrappers for MPI, like Pypar, please let us know and we will amend
these doc pages.
The lines
.. parsed-literal::