/************************************************************************/
/**                                                                    **/
/**                   Linux Installation of DISLIN                     **/
/**                                                                    **/
/** Contents: 1.) Introduction                                         **/
/**           2.) Installation of the RPM Distribution                 **/
/**           3.) Installation of the tar.gz Distribution              **/
/**           4.) Compiling, Linking and Running the Example Programs  **/ 
/**           5.) Getting a DISLIN License                             **/
/**           6.) Web Sites.                                           **/
/**                                                                    **/
/** Date   : 15.11.2005                                                **/
/** Version: 9.0 / Linux, NAG Fortran 90/95                            **/
/** Author : Helmut Michels                                            **/
/**          MPI fuer Sonnensystemforschung, Max-Planck-Str. 2,        **/
/**          D-37191 Katlenburg-Lindau, Germany                        **/
/** Mail:    michels@mps.mpg.de                                        **/
/************************************************************************/

1.) Introduction
  
   DISLIN is a high level and easy to use graphics library for displaying
   data as curves,  bar graphs,  pie charts,  3D-colour plots,  surfaces,
   contours and maps. The software is available for several C, Fortran 77
   and Fortran 90 compilers.
 
   The  Linux version of the graphics software DISLIN for the NAG Fortran
   90 compiler is distributed as a compressed tar file with the file name
   dislin-n.m.linux.nagf90.tar.gz. The number 'n.m' is the current versi-
   on of DISLIN. 


2.) Installation of the RPM Distribution

   The installtion of the RPM distribution of DISLIN for Linux NAG F90/F95
   is very easy. Give the command

                  rpm -i  dislin-9.0.linux.nag.rpm

   To uninstall DISLIN for Linux NAG F90/F95 give the command:

                  rpm -e  dislin_nag 

   Notes:  -  You must be root to install the RPM distribution of DISLIN
              for Linux NAG F90/F95.

           -  The RPM package 'dislin' is required.


3.) Installation of the tar.gz Distribution
        
a) Uncompress the tar.gz file with the command

                  gzip -d     dislin-9.0.linux.nag.tar.gz


b) Restore files from the tar file with the command

                  tar   xvf   dislin-9.0.linux.nag.tar    

c) Change to the extraction directory of DISLIN

                  cd    dislin-9.0

d) Choose a directory in the file structure where DISLIN should be
   installed and define the environment variable DISLIN with it:

   For example:    DISLIN=$HOME/dislin
                   export DISLIN

    
e) Run the install program with the command 

                   INSTALL

   This program copies files to $DISLIN and sets protections.

f) To make DISLIN available for general use, write the following com-
   mands to your .profile or to /etc/profile

                    DISLIN=directory                     
                    export DISLIN
                    PATH=${PATH}:${DISLIN}/bin

                    LD_LIBRARY_PATH=$DISLIN:$LD_LIBRARY_PATH
                    export LD_LIBRARY_PATH

   Note: The environment variable DISLIN is not necessary if DISLIN
         is installed in the default directory '/usr/local/dislin'. 

g) You can delete the directory 'dislin-9.0'.


4.) Compiling, Linking and Running the Example Programs

   Now you can compile, link and run the DISLIN example program in the
   directory $DISLIN/examples with the command:

                    nf90link -a exa_f90         (F90)         
                    nf95link -a exa_f90         (F95)         
   and 
                    nf90link -a map_f90         (F90)         
                    nf95link -a map_f90         (F95)         


   Notes: - An alternate linking method is:

            f90 -o exa_f90 exa_f90.o -L$DISLIN -ldislin 

          - All Fortran program units that call DISLIN routines must
            contain the statement

                USE DISLIN

            Programs can be compiled with the command

            f90 -c -I$DISLIN/nag main.f90
 
          - nf90link and nf95link link by default with the DISLIN single 
            precision library libdislin.so. A double precision version 
            of the library for real numbers is included in this 
            distribution (libdislin_d.so).


5.) Getting a DISLIN License

   DISLIN is free for non-commercial use. Licenses for selling programs
   linked with DISLIN or for using DISLIN in an environment related to
   business are available from the site http://www.dislin.de. 


6.) Web Sites

   DISLIN is available via ftp anonymous from the following site:

      ftp://ftp.gwdg.de/pub/grafik/dislin 

   The DISLIN home page is:

      http://www.dislin.de
