From f2276c9d9f8152eb4a6b65510c74f7aaa76927fb Mon Sep 17 00:00:00 2001 From: sjplimp Date: Mon, 10 Aug 2015 20:27:45 +0000 Subject: [PATCH] git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@13854 f3b2605a-c512-4ea7-a41b-209d697bcdaa --- lib/smd/Makefile.lammps | 5 +++++ lib/smd/README | 42 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 lib/smd/Makefile.lammps create mode 100644 lib/smd/README diff --git a/lib/smd/Makefile.lammps b/lib/smd/Makefile.lammps new file mode 100644 index 0000000000..7bbf3924ef --- /dev/null +++ b/lib/smd/Makefile.lammps @@ -0,0 +1,5 @@ +# Settings that the LAMMPS build will import when this package library is used + +user-smd_SYSINC = +user-smd_SYSLIB = +user-smd_SYSPATH = diff --git a/lib/smd/README b/lib/smd/README new file mode 100644 index 0000000000..4b84a81cac --- /dev/null +++ b/lib/smd/README @@ -0,0 +1,42 @@ +This directory contains links to the Eigen library which is required +to use the USER-SMD package in a LAMMPS input script. + +The Eigen library is available at http://eigen.tuxfamily.org. It's +a general C++ template library for linear algebra. + +You must perform the following steps yourself, or you can use the +install.py Python script to automate any or all steps of the process. +Type "python install.py" for instructions. + +1. Download the Eigen tarball at http://eigen.tuxfamily.org and + unpack the tarball either in this /lib/smd directory or somewhere + else on your system. It should unpack with into a directory with + a name similar to eigen-eigen-bdd17ee3b1b3. Note that Eigen is a + template library, so you do not have to build it. + +2. Create two soft links in this dir (lib/smd) + to the eigen directory. E.g if you unpacked Eigen in this dir: + % ln -s eigen-eigen-bdd17ee3b1b3 includelink + % ln -s eigen-eigen-bdd17ee3b1b3 liblink + If you unpackaged Eigen somewhere else and renamed + the directory to just eigen, then do something like this: + % ln -s /home/sjplimp/tools/eigen includelink + % ln -s /home/sjplimp/tools/eigen liblink + +When these steps are complete you can build LAMMPS +with the USER-SMD package installed: + +% cd lammps/src +% make yes-user-smd +% make g++ (or whatever target you wish) + +Note that if you download and unpack a new LAMMPS tarball, the +"includelink" and "liblink" files will be lost and you will need to +re-create them (step 2). If you unpacked the Eigen library in this +directory (as opposed to somewhere else on your system), you will also +need to repeat step 1. + +The Makefile.lammps file in this directory is there for compatibility +with the way other libraries under the lib dir are linked with by +LAMMPS. However, the Eigen library requires no auxiliary files or +settings, so its variables are blank.