untar the archive and cd into the lisa/ directory.
Provide the MACHINE DEPENDENT variables
There are a few machine specific variables which will need to be manually set on your machine in
order to compile LISA : e.g. c++
compiler, the fortran90 compiler, the links to lapack and blas.
These variables need to be specified in the file
Machine_Specific.d/HOST, where HOST is your HOST variable (if you do not know
what this is, simply type "echo $HOST"; if HOST is not set, put export HOST=YOUR_HOST in ~/.bashrc). There is already a file present
called EXAMPLE which contains a typical setup. This file should be copied to
your hostname and modified accordingly.
One can simply choose a compiler (like in CXX_COMPILER = GNU_GCC_3x)
or define the compiler and its options more finely if needed (See examples).
LISA requires 2 or 3 external libraries which may or may not be installed on
your machine: Blitz++, python, and
ALPS (optional). In order to make
installation easier, sources for Blitz++ and python are provided together
with a script to install them automatically. This option can be bypassed if
one already has these libraries present (see Machine_Specific.d/Parcollet for
an example), but it is generally more straightforward if one simply
recompiles them. To run the installation script do the following:
NOTE: If you are linking to a previously compiled copy of blitz++, it must be
compile with the same compiler which was used to compile LISA (ie. don't mix
icc with gcc).
In order to install ALPS, see the ALPS
web site and documentation. ALPS is not necessary to run LISA, but one of its library may be used
to compute the error in the QMC (not fully implemented yet).
Add into your ~/.bashrc (other shells have not been tested)
NOTE : HOST may already been defined.
On RUPC (Rutgers clusters), add to ~/.bashrc :
test -z "$PROFILEREAD" && . /etc/profile
Compile LISA :
- Choose the solvers you want to compile : e.g.
- Then do : make depend;make
Various options are printed by make.