use filelink.o consistently, since filelink does not work with some compilers, e.g. nvcc

This commit is contained in:
Axel Kohlmeyer 2018-01-04 20:43:53 -05:00
parent ffc74fca6c
commit 75f1a4f3f0
3 changed files with 10 additions and 9 deletions

View File

@ -732,7 +732,7 @@ make lib-latte args="-b -m gfortran" # download and build in lib/latte and
:pre
Note that 3 symbolic (soft) links, "includelink" and "liblink" and
"filelink", are created in lib/latte to point into the LATTE home dir.
"filelink.o", are created in lib/latte to point into the LATTE home dir.
When LAMMPS builds in src it will use these links. You should
also check that the Makefile.lammps file you create is apporpriate
for the compiler you use on your system to build LATTE.

View File

@ -28,14 +28,15 @@ Instructions:
and finally, build the code via the make command
% make
3. Create three soft links in this dir (lib/latte)
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
% ln -s ./LATTE-master/src/latte_c_bind.o filelink.o
4. Choose a Makefile.lammps.* file appropriate for your compiler
(GNU gfortran or Intel ifort) and copy it to Makefile.lammps.
(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.
@ -49,7 +50,7 @@ with the LATTE package installed:
% make g++ (or whatever target you wish)
Note that if you download and unpack a new LAMMPS tarball, the
"includelink" and "liblink" and "filelink" files 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.
"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.

View File

@ -17,7 +17,7 @@ Once you have successfully built LAMMPS with this package and the
LATTE library you can test it using an input file from the examples
latte dir, e.g.
lmp_serial < lammps/examples/latte/in.latte.water
lmp_serial -in lammps/examples/latte/in.latte.water
This pair style was written in collaboration with the LATTE
developers.