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

This commit is contained in:
sjplimp
2015-07-02 00:45:28 +00:00
parent 7579964db7
commit ade2dca6af
3 changed files with 57 additions and 41 deletions

View File

@ -2,19 +2,14 @@
# library so that a LAMMPS input script can use a KIM potential, via the # library so that a LAMMPS input script can use a KIM potential, via the
# pair_style kim command. # pair_style kim command.
# #
# You should first download KIM from www.openkim.org. Then build its # The KIM API package can be downloaded from https://openkim.org/kim-api
# library API in KIM_API, with the models (potentials) you want to use. # Follow the instructions in the INSTALL file to build and install the
# You should then have the files: # KIM API. Add the openkim.org Models you are interested in using.
# Make sure the directory where the "kim-api-build-conifg" utility is
# located is on the PATH.
# #
# openkim-api-vX.X.X/KIM_API/libkim.a # As long as you have followed the KIM API build and install instructions,
# openkim-api-vX.X.X/KIM_API/libkim.so # there should not be any reason to change this file.
#
# When you build LAMMPS with the KIM package installed, it will use the
# 3 settings in this file. They should be set as follows.
#
# kim_SYSINC = a path to the KIM_API directory that contains *.h files
# kim_SYSLIB = compiler flag to use the KIM library
# kim_SYSPATH = a path to the KIM library
# ----------------------------------------------------------- # -----------------------------------------------------------

View File

@ -1,9 +1,12 @@
This directory contains links to the KIM library which is required to This directory contains build settings for the KIM API library which
use the KIM package and its pair_style kim command in a LAMMPS input is required to use the KIM package and its pair_style kim command in a
script. LAMMPS input script.
Information about the KIM project can be found at https://openkim.org. Information about the KIM project can be found at https://openkim.org.
It's PIs are Ellad Tadmor and Ryan Elliott (U Minn). The KIM project is lead by Ellad Tadmor and Ryan Elliott (U Minn) and
James Sethna (Cornell U). Ryan Elliott is the main developer for the
KIM API and he also maintains the code that implements the pair_style
kim command.
To download, build, and install the KIM API on your system, follow To download, build, and install the KIM API on your system, follow
these steps. We are working on scripts that will automate this these steps. We are working on scripts that will automate this
@ -11,53 +14,65 @@ process.
The KIM API is available for download from "this The KIM API is available for download from "this
site"_https://openkim.org, namely https://openkim.org. The tarball site"_https://openkim.org, namely https://openkim.org. The tarball
you download is "kim-api-vX.X.X.tgz", which can be unpacked in you download is "kim-api-vX.Y.Z.tgz", which can be unpacked in this
this directory or whereever you wish: directory or whereever you wish:
tar xvfz kim*tgz tar xvfz kim*tgz
Note that if you unpack and build KIM in this directory, when you Note that if you unpack and build KIM in this directory, when you
download a new LAMMPS tarball, the files you have added here will download a new LAMMPS tarball, the files you have added here will be
be lost. So you likely want to build it somewhere else. lost. So you likely want to build it somewhere else.
The kim-api-vX.X.X/docs/ directory has further documentation for the The kim-api-vX.Y.Z/docs/ directory has further documentation for the
KIM API. In order to compile and install the KIM API follow the KIM API. In order to compile and install the KIM API follow the
instructions found in the file kim-api-vX.X.X/INSTALL. (Don't forget instructions found in the file kim-api-vX.Y.Z/INSTALL. (Don't forget
to download and compile any Model Drivers and Models that you want to to download and compile any Model Drivers and Models that you want to
use.) use.)
Once you have successfully compiled and installed the KIM API, you Once you have successfully compiled and installed the KIM API, you
need to make sure the utility kim-api-build-config is in your PATH need to make sure the utility kim-api-build-config is in your PATH so
so that the LAMMPS build system can properly work with the KIM API. that the LAMMPS build system can properly work with the KIM API.
The following are example commands that perform these steps: The following are example commands that perform these steps:
# replace X.X.X as appropriate here and below # replace X.Y.Z as appropriate here and below
wget http://s3.openkim.org/kim-api/kim-api-vX.X.X.tgz $ wget http://s3.openkim.org/kim-api/kim-api-vX.Y.Z.tgz
tar zxvf kim-api-vX.X.X.tgz $ tar zxvf kim-api-vX.Y.Z.tgz
# get OpenKIM models, setup and compile # get OpenKIM models, setup and compile
cd kim-api-vX.X.X $ cd kim-api-vX.Y.Z
cp Makefile.KIM_Config.example Makefile.KIM_Config $ cp Makefile.KIM_Config.example Makefile.KIM_Config
# edit this file as appropriate following the instructions given in INSTALL # edit this file as appropriate following the instructions given in
vi Makefile.KIM_Config # INSTALL. Here, we'll assume you set the 'prefix' variable as
# follows in order to install the KIM API to your home directory:
# prefix = $(HOME)/local
$ vi Makefile.KIM_Config
make add-EAM_Dynamo_Angelo_Moody_NiAlH__MO_418978237058_001 $ make add-EAM_Dynamo_Angelo_Moody_NiAlH__MO_418978237058_001
make $ make
make install $ make install
# replace X with the KIM API major version number # replace X with the KIM API major version number
make install-set-default-to-vX $ make install-set-default-to-vX
# add example for setting the PATH to include kim-api-build-config ?? # In order to permanently add the kim-api-build-config utility to your
# PATH variable, perform the following:
#
# For the bash shell:
$ printf "export PATH=${PATH}:${HOME}/local/bin\n" >> ${HOME}/.bashrc
$ source ${HOME}/.bashrc
#
# For the csh shell:
% printf "setenv PATH ${PATH}:${HOME}/local/bin\b" >> ${HOME}/.cshrc
% source ${HOME}/.cshrc
When these steps are complete you can build LAMMPS with the KIM When these steps are complete you can build LAMMPS with the KIM
package installed: package installed:
% cd lammps/src $ cd lammps/src
% make yes-kim $ make yes-kim
% make g++ (or whatever target you wish) $ make g++ (or whatever target you wish)
Note that the Makefile.lammps file in this directory is required Note that the Makefile.lammps file in this directory is required
to allow the LAMMPS build to find the necessary KIM files. You to allow the LAMMPS build to find the necessary KIM files. You

View File

@ -0,0 +1,6 @@
This package (pair-kim-v1.7.2) created from commit
ff907f94d1ae99114c12155f7f175ab63aa32b39
of the pair-kim git repository
By Ryan S. Elliott (relliott@umn.edu) on Sun Jun 28 20:16:30 EDT 2015.