Notice! This document is currently in Archived status.
The content of this document may be incorrect or out dated.

Using fortran at ECN

To use Fortran at ECN, you should do the following:

  • Create a file containing your Fortran source code using a text editor such as Emacs. The file should have a name that ends with a '.f' suffix. The compiler assumes that files ending in '.f' are Fortran source files.

  • Compile the source code using the Fortran-77 compiler, 'f77'. For example, if you want to compile a source file named 'program.f', type this:
            f77 program.f
    If your file compiles successfully, the executable file will be named 'a.out'.

    NOTE: On the RS/6000 workstations the name of the Fortran compiler is xlf, NOT f77.

  • To run the executable file, just type its name:
            a.out
  • If you need to debug run-time errors, you may want to use the 'dbx' source-level debugger. If you want to learn about the 'dbx', you can read the manual page by using the 'man' command:
            man dbx

Last modified: 2007/06/21 12:35:51.175000 GMT-4 by Unknown
Created: 2007/06/21 12:35:51.175000 GMT-4 by brian.r.brinegar.1.

Categories

Search

Type in a few keywords describing what information you are looking for in the text box below.

Admin Options: Edit this Document