
        Readme for FBLASLAPACK
        

=============
General Info:
============

This directory contains the fortran77 source files for BLAS and
LAPACK.  The reason for this distributions is so that the blas and
lapack libraries can be easily built, as these libraries are required
by the PETSc package.

=========================
Installation Instructions:
=========================

The libraries can be compiled 2 ways:

1. Using PETSc makefiles (default)
This way, the compiler and other information that is required to
compile, and build the libraries is picked up from the PETSc
makefiles. 

For eg:, to build on solaris, one can use:
make PETSC_ARCH=solaris PETSC_DIR=/home/user/petsc

2. Specify all the makefile variables.

This can be done by editing the makefile, specifying the compiler,
options, and other required make variables. Also comment out the make
include statement.

To build the libraries, the following command can now be used:
make 

==================
Potential Problems:
==================

Some f90 compilers may fail to compile fortran 77 source files. In this
case, one should identify the f77 compiler that is compatible with the
required f90 compiler, and use it to compile this package.

It can be done as follows:
make PETSC_ARCH=solaris PETSC_DIR=/home/user/petsc FC=f77

=================
Additional Notes:
=================

If building the blas and lapack libraries for more than one
architecture or for two different compilers, we recommend moving the
libraries to a sub directory that indicates they are associated with a
particular OS/compiler. For example after making the libraries for solaris,
mkdir solaris
mv libfblas.a solaris/
mv libflapack.a solaris/

On windows machines, cygnus tools are required to build the libraries,
along with win32fe - the PETSc frontend to Microsoft/Intel/Borland
compilers.  For additional info, check the PETSc installation
instructions.
