Skip to content Accesskey=4Skip to sub-navigation Accesskey=3View our Accessibility Options MIT Information Systems Home About IS&T Contact IS&T Site Map Search Advanced Search
Getting StartedGetting Services by Topic or Alphabetically Getting Help

On This Page

[Help]

  

Quick Links

Top Level

Related Links

Ask OLC a question

Athena Consulting Homepage

Helpdesk Stock Answers (for Mac/PC questions)


HOW TO use Fortran on Athena

To use Fortran on Athena, 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'.

- 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

For more detailed explanations and examples, you may want to look at
"Essential Fortran," available in CopyTech.

MIT Home | Getting Started | Getting Services | Getting Help | About IS&T | Accessibility
Ask a technology question or send a comment about this web page.