Installation of sotid.
~~~~~~~~~~~~~~~~~~~~~~

As a minimum you have to have Fortran90 compiler. Although you can use
sotid from C and other languages, you definitely need Fortran90 compiler 
for compiling the library.

First unarchive the distribution kit:

tar -zxvf sotid_1.1.tar.gz if you have modern tar command. Or in two steps:

gzip -d   sotid_1.1.tar.gz 
tar  -xvf sotid_1.1.tar

   Sotid was tested under the following operating systems:

HP-UX 
SunOS 
Linux, Intel Fortran90/95 compiler.

If your machine runs one of these operating systems, then you can use 
the automatic installation.

Automatic installation.
~~~~~~~~~~~~~~~~~~~~~~~

1) Copy sotid_xxxx.cnf or sotid_sunos.cnf  to sotid.cnf  (xxxx is a name of
   you operating system: linux, hpux or sunos).

2) Edit sotid.cnf

3) Run ./configure

4) make all

5) make install

Although sotid was tested only for HP-UX, Linux and Sun it does not mean that 
it should fail in any other system with decent Fortran90 and C compilers.
If your system is other than HP-UX, Linux or Sun, you can either upgrade 
installation procedure or compile library manually. You can do manual 
installation if for some reason automatic installation under HP-UX and SunOS 
failed.

Manual installation.
~~~~~~~~~~~~~~~~~~~~

a) Copy Makefile.in to Makefile

b) Edit it manually. Replace @ at the header of the file with actual values.
FOPT   stands for f90 options. sotid is written in free form, so you might need
       the use an option to let your compiler know it. You also should
       force compiler to use cpp preprocessor if it does not do by default.
LD_OPT stands for linker options. You can omit it (let LD_OPT = ) if you 
       believe your linker requires no options.
BIN_DIR specifies the directory where binary files are to be out.
LIB_DIR specifies the directory where libsotid.a will be put during 
        installation.
INC_DIR specifies the directory where Fortrtan module and C header fioles 
        should be put during installation.
MAN_DIR specifies the directory where manual page is to be put during 
        installation.
DOC_DIR specifies the directory where documentation page is to be put during 
        installation.
CCOMP   specifies C compiler and options. If your compiler by default does not
        conform ANSI, you should use relevant option.
LIB_F90 specifies libraries for fortran90. These libraries are needed when
        you link C program with libsotid.a . If you are not going to use sotid
        from C program, you do not need to worry. If you intend to use sotid
        from C applications, you should learn which f90 libraries are to be 
        used.

c) Read sotid_hpux.cnf. 
   Copy sotid_type.in to sotid_type.i

   Replace @ with preferred values. You can find explanation in sotid_hpux.cnf 
   file.

d) Copy sotid_type.hi to sotid_type.h . 
   Replace @ with the same values as in sotid_type.i

e) Copy hw_out.in to hw_out.i
   Replace @ with your preferred values. You can find explanation in 
   sotid_hpux.cnf file.

Compile all source code modules. Refer to README to find filenames.