Fortran Example, for TDI Tutorial

First, make your fortran file, e.g. integ.for.

For simple testing, make a main routine for testing e.g., testinteg.for . Compile, Link and execute your test program (examples are for VMS operating system):

   $ FORTRAN testinteg
   $ FORTRAN integ
   $ LINK testinteg, integ
   $ RUN testinteg
    This program will return an array of running integrals
    array=   1.000000       2.000000       3.000000       4.000000    
     5.000000       16.00000       7.000000       8.000000       9.000000    
    running integral=  0.0000000E+00   1.500000       4.000000       7.500000    
     12.00000       22.50000       34.00000       41.50000       50.00000    

       (Go to the Back to the TDI Tutorial)