From c18dd6bbc5d0373953dad976a3d17d5c8c17f43e Mon Sep 17 00:00:00 2001 From: sjplimp Date: Thu, 30 May 2013 17:54:46 +0000 Subject: [PATCH] git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@9961 f3b2605a-c512-4ea7-a41b-209d697bcdaa --- lib/atc/Makefile.lammps.linalg | 2 +- lib/atc/README | 37 ++++++++++++++++++++++------------ 2 files changed, 25 insertions(+), 14 deletions(-) diff --git a/lib/atc/Makefile.lammps.linalg b/lib/atc/Makefile.lammps.linalg index b23ae2f873..f6890822c8 100644 --- a/lib/atc/Makefile.lammps.linalg +++ b/lib/atc/Makefile.lammps.linalg @@ -2,4 +2,4 @@ user-atc_SYSINC = user-atc_SYSLIB = -llinalg -user-atc_SYSPATH = -l../../lib/linalg +user-atc_SYSPATH = -L../../lib/linalg diff --git a/lib/atc/README b/lib/atc/README index 1ea7a3bde4..53b175b5c1 100644 --- a/lib/atc/README +++ b/lib/atc/README @@ -30,22 +30,33 @@ exist in this directory: libatc.a the library LAMMPS will link against Makefile.lammps settings the LAMMPS Makefile will import -Makefile.lammps is created by the make procedure, by making a copy of -one of the Makefile.lammps.* files. See the EXTRAMAKE setting at the -top of the Makefile.* files. It is IMPORTANT that you examine the -final Makefile.lammps to insure it is correct for your system, else -the LAMMPS build will likely fail. +Makefile.lammps is created by the make command, by copying one of the +Makefile.lammps.* files. See the EXTRAMAKE setting at the top of the +Makefile.* files. + +It is IMPORTANT that you examine the final Makefile.lammps to insure +it is correct for your system, else the LAMMPS build will likely fail. Makefile.lammps has settings for 3 variables: user-atc_SYSINC = leave blank for this package -user-atc_SYSLIB = additional system libraries needed by this package +user-atc_SYSLIB = BLAS and LAPACK libraries needed by this package user-atc_SYSPATH = path(s) to where those libraries are -SYSLIB must specify a BLAS library and a LAPACK library. If they are -already installed on your system, the settings in -Makefile.lammps.installed should suffice. If you want to use the -version provided with LAMMPS in lib/linalg, then the settings in -Makefile.lammps.linalg should work. Note that in this case you also -need to build the linear-algebra in lib/linalg; see the -lib/linalg/README for more details. +You have several choices for these settings: + +If the 2 libraries are already installed on your system, the settings +in Makefile.lammps.installed should work. + +If they are not, you can install them yourself, and make +the appropriate settings. + +If you want to use the version provided with LAMMPS in lib/linalg, +then the settings in Makefile.lammps.linalg should work. Note that in +this case you also need to build the linear-algebra in lib/linalg; see +the lib/linalg/README for more details. + +You can leave these settings blank and specify them in your +src/MAKE/Makefile.machine file instead. In this case you should edit +the Makefile.* to use Makefile.lammps.empty when it creates +Makefile.lammps.