lammps/lib/message
Yaser Afshar 437967bfd8 adding the standard header to prevent ‘NULL’ was not declared error 2020-04-27 12:49:03 -05:00
..
cslib adding the standard header to prevent ‘NULL’ was not declared error 2020-04-27 12:49:03 -05:00
Install.py some cleanups and small bugfixes to conform better with python conventions 2019-01-28 17:37:05 -05:00
Makefile.lammps.nozmq new MESSAGE package for client/server/coupling 2018-07-23 15:58:33 -06:00
Makefile.lammps.zmq new MESSAGE package for client/server/coupling 2018-07-23 15:58:33 -06:00
README Fix typo 2020-03-14 13:57:48 +09:00

README

This directory contains the CSlib library which is required
to use the MESSAGE package and its client/server commands
in a LAMMPS input script.

The CSlib library is included in the LAMMPS distribution.  A fuller
version including documentation and test programs is available at
http://cslib.sandia.gov.  It was developed by Steve Plimpton at Sandia
National Laboratories.

You can type "make lib-message" from the src directory to see help on
how to build this library via make commands, or you can do the same
thing by typing "python Install.py" from within this directory, or you
can do it manually by following the instructions below.

The CSlib can be optionally built with support for sockets using
the open-source ZeroMQ (ZMQ) library.  If it is not installed
on your system, it is easy to download and install.

Go to the ZMQ website for details: http://zeromq.org

-----------------

Instructions:

1.  Compile CSlib from within cslib/src with one of the following:
    % make lib_parallel     # build parallel library with ZMQ socket support
    % make lib_serial       # build serial library with ZMQ support
    % make lib_parallel zmq=no   # build parallel lib with no ZMQ support
    % make lib_serial zmq=no     # build serial lib with no ZMQ support

2.  Copy the produced cslib/src/libcsmpi.a or libscnompi.a file to
    cslib/src/libmessage.a

3.  Copy either lib/message/Makefile.lammps.zmq or Makefile.lammps.nozmq
    to lib/message/Makefile.lammps, depending on whether you
    build the library with ZMQ support or not.
    If your ZMQ library is not in a place your shell path finds,
    you can set the INCLUDE and PATH variables in Makefile.lammps
    to point to the dirs where the ZMQ include and library files are.

-----------------

When these steps are complete you can build LAMMPS
with the MESSAGAE package installed:

% cd lammps/src
% make yes-message
% make mpi (or whatever target you wish)

Note that if you download and unpack a new LAMMPS tarball, you will
need to re-build the CSlib in this dir.