About the present linalg library
================================

It has been obtained from the site http://www.netlib.org/lapack,
corresponding to version 3.2.1 of BLAS+LAPACK.
The routines contained in the blas subdirectory come from the BLAS/SRC subdirectory
of the library, while the routines contained in the lapack subdirectory
come from the SRC subdirectory of the library, augmented with the following routines
(from the INSTALL subdirectory of the library) :
- dlamch.f  (Warning : this routine has been modified, for coherence with previous versions of ABINIT,
     the modifications are documented inside the routine)
- slamc.f
- lsame.f
All the subroutines from BLAS+LAPACK 3.2.1 are present in the two subdirectories blas and lapack.
This was not the case before v6.0 of ABINIT.


(Here follows the content of the README file until November 2009,
 end of ABINITv5.9)

Adding a new source file inside prereqs/linalg
=====================================================

The procedure to add a new BLAS or LAPACK routine is quite simple:

  * unpack the tarball;
  * add the routine and its dependencies;
  * add the object files to the list in the Makefile;
  * repack the tarball as lapack-abinit_x.x.tar.gz where x.x indicates the abinit version;
  * check that it builds;
  * remove the old tarball;
  * edit config/m4/init.m4 updating the variable linalg_pkg_name;
  * edit _linalg_ adding the new interfaces;
  * let Bazaar know about the change.

