SLEPc for Debian
----------------

With slepc-dev installed (or libslepc3.6-dev, or libslepc-real-3.6.3-dev 
or libslepc-complex-3.6.3-dev), you can build programs against it two ways:

     1. Standard build convention: use -I/usr/include/slepc for headers and
	link to optimized libraries in /usr/lib, so your resulting binaries
	will only depend on libslepc3.2. To link against the static
	debugging libs in libslepc3.2-dbg, add -L/usr/lib/slepc/lib/libg
	when linking and set LD_LIBRARY_PATH to /usr/lib/slepc/lib/libg.
     2. PETSc/SLEPc build convention: modify the makefile from the one in 
        their examples directory and build with 

        PETSC_DIR=/usr/lib/petsc PETSC_ARCH=`petscarch` \
	  PETSC_LIB_DIR=$PETSC_DIR/$PETSC_ARCH/lib SLEPC_DIR=/usr/lib/slepc \
	  SLEPC_LIB_DIR=$SLEPC_DIR/$PETSC_ARCH/lib make

The slepc3.6.3-doc package comes with the SLEPc examples in 
/usr/share/doc/slepc3.6.3-doc/examples/ 
Copy as needed and use the PETSc/SLEPc build convention make command 
above.

The preferred version of SLEPc (real or complex, the preferred minor 
patch version) can be controlled using alternatives:
   update-alternatives --config slepc
(other slepc alternatives are listed below)
Or PETSC_DIR and SLEPC_DIR can be set to the preferred version located under 
/usr/lib/petscdir and /usr/lib/slepcdir.

See also README.Debian in the PETSc package for more related notes.

The full set of SLEPc alternatives is:

slepc   - set the default version (real or complex) of SLEPc (/usr/lib/slepc)

libslepc_real.so
        - set the default SLEPc shared library with real number support

libslepc_complex.so
        - set the default SLEPc shared library with complex number support
     
slepc3.6
        - set the preferred minor patch version (real or complex) of SLEPc 3.6
          (/usr/lib/slepcdir/3.6)
        
slepc3.6-real
        - set the preferred minor patch version of SLEPc 3.6
          with real number support (/usr/lib/slepcdir/3.6-real)

slepc3.6-complex
        - set the preferred minor patch version of SLEPc 3.6
          with complex number support (/usr/lib/slepcdir/3.6-complex)

libslepc.so.3.6
        - set the preferred minor patch version (real or complex) for the
          shared library of SLEPc 3.6
 
libslepc_real.so.3.6
        - set the preferred minor patch version for the shared library
          of SLEPc 3.6 with real number support

libslepc_complex.so.so.3.6
        - set the preferred minor patch version for the shared library
          of SLEPc 3.6 with complex number support

(likewise for other major versions in place of 3.6)
