lammps/lib/latte
Christoph Junghans fe62e1dbc9 latte: bump to v1.2.2 2020-05-05 10:51:11 -06:00
..
.gitignore update .gitignore for lib/latte 2018-05-07 07:23:29 -04:00
Install.py latte: bump to v1.2.2 2020-05-05 10:51:11 -06:00
Makefile.lammps.gfortran having plain filelink instead of filelink.o confuses KOKKOS linking with nvcc 2017-09-25 19:37:37 -04:00
Makefile.lammps.ifort remove wrong link optimization flag 2018-08-20 13:42:34 -06:00
Makefile.lammps.linalg provide Makefile.lammps template for use with bundled linalg lib 2017-10-24 13:38:04 -04:00
Makefile.lammps.mpi provide Makefile.lammps template for use with bundled linalg lib 2017-10-24 13:38:04 -04:00
Makefile.lammps.serial provide Makefile.lammps template for use with bundled linalg lib 2017-10-24 13:38:04 -04:00
README use filelink.o consistently, since filelink does not work with some compilers, e.g. nvcc 2018-01-04 20:43:53 -05:00

README

This directory contains links to the LATTE library which is required
to use the LATTE package and its fix latte command in a LAMMPS input
script.

Information about the LATTE DFTB code can be found at:
https://github.com/lanl/LATTE

The LATTE development effort is led by Marc Cawkwell and
Anders Niklasson at Los Alamos National Laboratory.

You can type "make lib-latte" from the src directory to see help on
how to download and 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.

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

Instructions:

1. Download or clone the LATTE source code from
   https://github.com/lanl/LATTE.  If you download a zipfile
   or tarball, unpack the tarball either in this /lib/latte
   directory or somewhere else on your system.

2. Modify the makefile.CHOICES according to your system architecture 
   and compilers.  Check that the MAKELIB flag is ON in makefile.CHOICES
   and finally, build the code via the make command
   % make

3. Create three symbolic links in this dir (lib/latte)
   E.g if you built LATTE in this dir:
      % ln -s ./LATTE-master/src includelink
      % ln -s ./LATTE-master liblink
      % ln -s ./LATTE-master/src/latte_c_bind.o filelink.o

4. Choose a Makefile.lammps.* file appropriate for your compiler
   (GNU gfortran with external BLAS, GNU gfortran with local liblinalg,
   or Intel ifort with MKL) and copy it to Makefile.lammps.
   Note that you may need to edit Makefile.lammps for paths
   and compiler options appropriate to your system.

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

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

% cd lammps/src
% make yes-latte
% make g++ (or whatever target you wish)

Note that if you download and unpack a new LAMMPS tarball, the
"includelink" and "liblink" and "filelink.o" symbolic links will be
lost and you will need to re-create them (step 3).  If you built LATTE
in this directory (as opposed to somewhere else on your system), you
will also need to repeat steps 1,2,4.